diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-08-22 13:53:40 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-08-22 12:14:05 -0700 |
commit | c76c992525245ec1c7b6738bf887c42099abab02 (patch) | |
tree | f711f6fdb8e679b70a78b3b7f9b01dbea2e9d9bd | |
parent | 8da3803d1ac49a9e47e9059fecd07167d4139389 (diff) |
nexthops: remove redundant assignment to variable err
Variable err is initialized to a value that is never read and it is
re-assigned later. The initialization is redundant and can be removed.
Addresses-Coverity: ("Unused Value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/ipv4/nexthop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/nexthop.c b/net/ipv4/nexthop.c index 5fe5a3981d43..fc34fd1668d6 100644 --- a/net/ipv4/nexthop.c +++ b/net/ipv4/nexthop.c @@ -1151,7 +1151,7 @@ static int nh_create_ipv4(struct net *net, struct nexthop *nh, .fc_encap_type = cfg->nh_encap_type, }; u32 tb_id = l3mdev_fib_table(cfg->dev); - int err = -EINVAL; + int err; err = fib_nh_init(net, fib_nh, &fib_cfg, 1, extack); if (err) { |