Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Colin Ian King and committed by
David S. Miller
d16fa759 21f6f946

+1 -1
+1 -1
net/ipv6/rpl_iptunnel.c
··· 210 210 struct dst_entry *orig_dst = skb_dst(skb); 211 211 struct dst_entry *dst = NULL; 212 212 struct rpl_lwt *rlwt; 213 - int err = -EINVAL; 213 + int err; 214 214 215 215 rlwt = rpl_lwt_lwtunnel(orig_dst->lwtstate); 216 216