From: David Ahern Date: Sat, 27 May 2017 22:19:33 +0000 (-0600) Subject: net: mpls: remove unnecessary initialization of err X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e1af005b1ce6d33c0467808ddceb09a8a1a424ba;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: David S. Miller --- diff --git a/net/mpls/af_mpls.c b/net/mpls/af_mpls.c index a953fcf169ba..94b3317232a6 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];