mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 06:33:07 +00:00
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>
This commit is contained in:
parent
21f6f94693
commit
d16fa75925
1 changed files with 1 additions and 1 deletions
|
@ -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 *orig_dst = skb_dst(skb);
|
||||||
struct dst_entry *dst = NULL;
|
struct dst_entry *dst = NULL;
|
||||||
struct rpl_lwt *rlwt;
|
struct rpl_lwt *rlwt;
|
||||||
int err = -EINVAL;
|
int err;
|
||||||
|
|
||||||
rlwt = rpl_lwt_lwtunnel(orig_dst->lwtstate);
|
rlwt = rpl_lwt_lwtunnel(orig_dst->lwtstate);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue