mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 01:21:58 +00:00
net: mpls: remove unnecessary initialization of err
err is initialized to EINVAL and not used before it is set again. Remove the unnecessary initialization. Signed-off-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
d4e7256007
commit
e1af005b1c
1 changed files with 0 additions and 2 deletions
|
@ -743,8 +743,6 @@ static int mpls_nh_build_from_cfg(struct mpls_route_config *cfg,
|
|||
if (!nh)
|
||||
return -ENOMEM;
|
||||
|
||||
err = -EINVAL;
|
||||
|
||||
nh->nh_labels = cfg->rc_output_labels;
|
||||
for (i = 0; i < nh->nh_labels; i++)
|
||||
nh->nh_label[i] = cfg->rc_output_label[i];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue