Commit 6f43e525 authored by Colin Ian King's avatar Colin Ian King Committed by David S. Miller

nexthop: remove redundant assignment to err

The variable err is initialized with a value that is never read
and err is reassigned a few statements later. This initialization
is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Reviewed-by: default avatarDavid Ahern <dsahern@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6912378d
...@@ -836,7 +836,7 @@ static int nh_create_ipv6(struct net *net, struct nexthop *nh, ...@@ -836,7 +836,7 @@ static int nh_create_ipv6(struct net *net, struct nexthop *nh,
.fc_encap = cfg->nh_encap, .fc_encap = cfg->nh_encap,
.fc_encap_type = cfg->nh_encap_type, .fc_encap_type = cfg->nh_encap_type,
}; };
int err = -EINVAL; int err;
if (!ipv6_addr_any(&cfg->gw.ipv6)) if (!ipv6_addr_any(&cfg->gw.ipv6))
fib6_cfg.fc_flags |= RTF_GATEWAY; fib6_cfg.fc_flags |= RTF_GATEWAY;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment