Commit c4e84858 authored by Colin Ian King's avatar Colin Ian King Committed by Herbert Xu

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: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 2d93913e
...@@ -216,7 +216,6 @@ static void *chtls_uld_add(const struct cxgb4_lld_info *info) ...@@ -216,7 +216,6 @@ static void *chtls_uld_add(const struct cxgb4_lld_info *info)
cdev->lldi = lldi; cdev->lldi = lldi;
cdev->pdev = lldi->pdev; cdev->pdev = lldi->pdev;
cdev->tids = lldi->tids; cdev->tids = lldi->tids;
cdev->ports = (struct net_device **)(cdev + 1);
cdev->ports = lldi->ports; cdev->ports = lldi->ports;
cdev->mtus = lldi->mtus; cdev->mtus = lldi->mtus;
cdev->tids = lldi->tids; cdev->tids = lldi->tids;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment