summaryrefslogtreecommitdiff
path: root/drivers/crypto/chelsio/chtls
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-04-06 19:58:47 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2018-04-20 19:58:31 +0300
commitc4e848586cf11dd80633e4981108f36d4b414df1 (patch)
tree9dd03d09f51309ee9b4df41ece9f256c7ac99438 /drivers/crypto/chelsio/chtls
parent2d93913e22013cb941fa7e1cf3d5e6649bc2bfad (diff)
downloadlinux-c4e848586cf11dd80633e4981108f36d4b414df1.tar.xz
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>
Diffstat (limited to 'drivers/crypto/chelsio/chtls')
-rw-r--r--drivers/crypto/chelsio/chtls/chtls_main.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/crypto/chelsio/chtls/chtls_main.c b/drivers/crypto/chelsio/chtls/chtls_main.c
index 69f3756eb980..5b9dd582aac0 100644
--- a/drivers/crypto/chelsio/chtls/chtls_main.c
+++ b/drivers/crypto/chelsio/chtls/chtls_main.c
@@ -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;