projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d93913
)
crypto: chelsio - remove redundant assignment to cdev->ports
author
Colin Ian King
<
[email protected]
>
Fri, 6 Apr 2018 16:58:47 +0000
(17:58 +0100)
committer
Herbert Xu
<
[email protected]
>
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 <
[email protected]
>
Signed-off-by: Herbert Xu <
[email protected]
>
drivers/crypto/chelsio/chtls/chtls_main.c
patch
|
blob
|
history
diff --git
a/drivers/crypto/chelsio/chtls/chtls_main.c
b/drivers/crypto/chelsio/chtls/chtls_main.c
index 69f3756eb980a697f4df8fea8323ad4bd48ed2db..5b9dd582aac07ca0328a5c3f9b1135cd745fb503 100644
(file)
--- 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;