提交 92e1b57c 编写于 作者: C Colin Ian King 提交者: David S. Miller

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: NColin Ian King <colin.king@canonical.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 feb938fa
...@@ -705,7 +705,7 @@ int __bond_opt_set(struct bonding *bond, ...@@ -705,7 +705,7 @@ int __bond_opt_set(struct bonding *bond,
int __bond_opt_set_notify(struct bonding *bond, int __bond_opt_set_notify(struct bonding *bond,
unsigned int option, struct bond_opt_value *val) unsigned int option, struct bond_opt_value *val)
{ {
int ret = -ENOENT; int ret;
ASSERT_RTNL(); ASSERT_RTNL();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册