diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-04-06 19:58:47 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-04-20 19:58:31 +0300 |
commit | c4e848586cf11dd80633e4981108f36d4b414df1 (patch) | |
tree | 9dd03d09f51309ee9b4df41ece9f256c7ac99438 /drivers/crypto/chelsio/chtls | |
parent | 2d93913e22013cb941fa7e1cf3d5e6649bc2bfad (diff) | |
download | linux-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.c | 1 |
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; |