summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@gmail.com>2017-05-27 16:19:33 -0600
committerDavid S. Miller <davem@davemloft.net>2017-05-30 11:55:33 -0400
commite1af005b1ce6d33c0467808ddceb09a8a1a424ba (patch)
treebc7fda874b020c05877c925321a30e67c30c7086
parentd4e7256007b0763614a41c9c0a5a943dc1095b22 (diff)
downloadop-kernel-dev-e1af005b1ce6d33c0467808ddceb09a8a1a424ba.zip
op-kernel-dev-e1af005b1ce6d33c0467808ddceb09a8a1a424ba.tar.gz
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>
-rw-r--r--net/mpls/af_mpls.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/mpls/af_mpls.c b/net/mpls/af_mpls.c
index a953fcf..94b3317 100644
--- a/net/mpls/af_mpls.c
+++ b/net/mpls/af_mpls.c
@@ -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];
OpenPOWER on IntegriCloud