From: Colin Ian King Date: Thu, 3 Jun 2021 13:19:04 +0000 (+0100) Subject: bonding: remove redundant initialization of variable ret X-Git-Tag: v5.14-rc1~119^2~345 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=92e1b57c3865c508e0ecd9824b7a64256329b8fd;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/bonding/bond_options.c b/drivers/net/bonding/bond_options.c index 81c039531e66f..0cf25de6f46d8 100644 --- 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();