Skip to content

Commit c4e8485

Browse files
Colin Ian Kingherbertx
authored andcommitted
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>
1 parent 2d93913 commit c4e8485

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎drivers/crypto/chelsio/chtls/chtls_main.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,6 @@ static void *chtls_uld_add(const struct cxgb4_lld_info *info)
216216
cdev->lldi = lldi;
217217
cdev->pdev = lldi->pdev;
218218
cdev->tids = lldi->tids;
219-
cdev->ports = (struct net_device **)(cdev + 1);
220219
cdev->ports = lldi->ports;
221220
cdev->mtus = lldi->mtus;
222221
cdev->tids = lldi->tids;

0 commit comments

Comments
 (0)