projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
feb938f
)
bonding: remove redundant initialization of variable ret
author
Colin Ian King
<colin.king@canonical.com>
Thu, 3 Jun 2021 13:19:04 +0000
(14:19 +0100)
committer
David S. Miller
<davem@davemloft.net>
Thu, 3 Jun 2021 22:25:29 +0000
(15:25 -0700)
The variable ret is being initialized with a value that is never read,
it is being updated later on. The assignment is redundant and can be
removed.
Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_options.c
patch
|
blob
|
history
diff --git
a/drivers/net/bonding/bond_options.c
b/drivers/net/bonding/bond_options.c
index
81c0395
..
0cf25de
100644
(file)
--- a/
drivers/net/bonding/bond_options.c
+++ b/
drivers/net/bonding/bond_options.c
@@
-705,7
+705,7
@@
out:
int __bond_opt_set_notify(struct bonding *bond,
unsigned int option, struct bond_opt_value *val)
{
- int ret
= -ENOENT
;
+ int ret;
ASSERT_RTNL();