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:
Colin Ian King 2018-04-06 17:58:47 +01:00 committed by Herbert Xu
parent 2d93913e22
commit c4e848586c
1 changed files with 0 additions and 1 deletions

View File

@ -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;