diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-04-06 18:58:47 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-04-20 18:58:31 +0200 |
commit | c4e848586cf11dd80633e4981108f36d4b414df1 (patch) | |
tree | 9dd03d09f51309ee9b4df41ece9f256c7ac99438 /drivers | |
parent | crypto: chelsio - don't leak information from the stack to userspace (diff) | |
download | linux-c4e848586cf11dd80633e4981108f36d4b414df1.tar.xz linux-c4e848586cf11dd80633e4981108f36d4b414df1.zip |
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')
-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; |