diff options
author | Zhengchao Shao <shaozhengchao@huawei.com> | 2024-01-05 09:56:34 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-01-07 18:16:19 +0300 |
commit | c4a5ee9c09aa11f394b57674f525085034f5f68b (patch) | |
tree | 0c6f8971669b4ff8c445d7c575f5c1a154ada62d | |
parent | 405cd9fc6f44f7a54505019bea60de83f1c58365 (diff) | |
download | linux-c4a5ee9c09aa11f394b57674f525085034f5f68b.tar.xz |
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>
-rw-r--r-- | net/core/fib_rules.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/core/fib_rules.c b/net/core/fib_rules.c index 96622bfb838a..3f933ffcefc3 100644 --- a/net/core/fib_rules.c +++ b/net/core/fib_rules.c @@ -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; |