Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e1af005b authored by David Ahern's avatar David Ahern Committed by David S. Miller
Browse files

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: default avatarDavid Ahern <dsahern@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d4e72560
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -743,8 +743,6 @@ static int mpls_nh_build_from_cfg(struct mpls_route_config *cfg,
	if (!nh)
	if (!nh)
		return -ENOMEM;
		return -ENOMEM;


	err = -EINVAL;

	nh->nh_labels = cfg->rc_output_labels;
	nh->nh_labels = cfg->rc_output_labels;
	for (i = 0; i < nh->nh_labels; i++)
	for (i = 0; i < nh->nh_labels; i++)
		nh->nh_label[i] = cfg->rc_output_label[i];
		nh->nh_label[i] = cfg->rc_output_label[i];