Commit bf0df73a authored by Colin Ian King's avatar Colin Ian King Committed by David S. Miller
Browse files

seg6_iptunnel: Remove redundant initialization of variable err



The variable err is being initialized with a value that is never read, it
is being updated later on. The assignment is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 743902c5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -385,7 +385,7 @@ static int seg6_output_core(struct net *net, struct sock *sk,
	struct dst_entry *orig_dst = skb_dst(skb);
	struct dst_entry *dst = NULL;
	struct seg6_lwt *slwt;
	int err = -EINVAL;
	int err;

	err = seg6_do_srh(skb);
	if (unlikely(err))