bonding: remove redundant initialization of variable ret
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>
This commit is contained in:
committed by
David S. Miller
parent
feb938fad6
commit
92e1b57c38
@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user