Commit 92e1b57c authored by Colin Ian King's avatar Colin Ian King Committed by David S. Miller
Browse files

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: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent feb938fa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -705,7 +705,7 @@ int __bond_opt_set(struct bonding *bond,
int __bond_opt_set_notify(struct bonding *bond,
			  unsigned int option, struct bond_opt_value *val)
{
	int ret = -ENOENT;
	int ret;

	ASSERT_RTNL();