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

net: ipv6: rpl_iptunnel: remove redundant assignments to variable err



The variable err is being initialized with a value that is never
read and it is being updated later with a new value.  The initialization
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 21f6f946
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -210,7 +210,7 @@ static int rpl_output(struct net *net, struct sock *sk, struct sk_buff *skb)
	struct dst_entry *orig_dst = skb_dst(skb);
	struct dst_entry *dst = NULL;
	struct rpl_lwt *rlwt;
	int err = -EINVAL;
	int err;

	rlwt = rpl_lwt_lwtunnel(orig_dst->lwtstate);