mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-02 16:44:10 +08:00
crypto: chelsio - remove redundant assignment to cdev->ports
There is a double assignment to cdev->ports, the first is redundant as it is over-written so remove it. Detected by CoverityScan, CID#1467432 ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
2d93913e22
commit
c4e848586c
@ -216,7 +216,6 @@ static void *chtls_uld_add(const struct cxgb4_lld_info *info)
|
||||
cdev->lldi = lldi;
|
||||
cdev->pdev = lldi->pdev;
|
||||
cdev->tids = lldi->tids;
|
||||
cdev->ports = (struct net_device **)(cdev + 1);
|
||||
cdev->ports = lldi->ports;
|
||||
cdev->mtus = lldi->mtus;
|
||||
cdev->tids = lldi->tids;
|
||||
|
Loading…
Reference in New Issue
Block a user