Skip to content

Commit

Permalink
net: mpls: remove unnecessary initialization of err
Browse files Browse the repository at this point in the history
err is initialized to EINVAL and not used before it is set again.
Remove the unnecessary initialization.

Signed-off-by: David Ahern <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
dsahern authored and davem330 committed May 30, 2017
1 parent d4e7256 commit e1af005
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions net/mpls/af_mpls.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit e1af005

Please sign in to comment.