mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-11-30 13:34:44 +08: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
@ -593,7 +593,6 @@ static int fib_nl2rule(struct sk_buff *skb, struct nlmsghdr *nlh,
|
||||
if (tb[FRA_TUN_ID])
|
||||
nlrule->tun_id = nla_get_be64(tb[FRA_TUN_ID]);
|
||||
|
||||
err = -EINVAL;
|
||||
if (tb[FRA_L3MDEV] &&
|
||||
fib_nl2rule_l3mdev(tb[FRA_L3MDEV], nlrule, extack) < 0)
|
||||
goto errout_free;
|
||||
|
Loading…
Reference in New Issue
Block a user