crypto: chelsio - remove redundant assignment to cdev->ports
authorColin Ian King <colin.king@canonical.com>
Fri, 6 Apr 2018 16:58:47 +0000 (17:58 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 20 Apr 2018 16:58:31 +0000 (00:58 +0800)
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>
drivers/crypto/chelsio/chtls/chtls_main.c

index 69f3756..5b9dd58 100644 (file)
@@ -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;