mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 12:57:53 +00:00
fib: rules: remove repeated assignment in fib_nl2rule
In fib_nl2rule(), 'err' variable has been set to -EINVAL during declaration, and no need to set the 'err' variable to -EINVAL again. So, remove it. Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com> Reviewed-by: Simon Horman <horms@kernel.org> Reviewed-by: David Ahern <dsahern@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
405cd9fc6f
commit
c4a5ee9c09
1 changed files with 0 additions and 1 deletions
|
@ -593,7 +593,6 @@ static int fib_nl2rule(struct sk_buff *skb, struct nlmsghdr *nlh,
|
||||||
if (tb[FRA_TUN_ID])
|
if (tb[FRA_TUN_ID])
|
||||||
nlrule->tun_id = nla_get_be64(tb[FRA_TUN_ID]);
|
nlrule->tun_id = nla_get_be64(tb[FRA_TUN_ID]);
|
||||||
|
|
||||||
err = -EINVAL;
|
|
||||||
if (tb[FRA_L3MDEV] &&
|
if (tb[FRA_L3MDEV] &&
|
||||||
fib_nl2rule_l3mdev(tb[FRA_L3MDEV], nlrule, extack) < 0)
|
fib_nl2rule_l3mdev(tb[FRA_L3MDEV], nlrule, extack) < 0)
|
||||||
goto errout_free;
|
goto errout_free;
|
||||||
|
|
Loading…
Reference in a new issue