summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstephen hemminger <stephen@networkplumber.org>2017-05-19 09:55:49 -0700
committerDavid S. Miller <davem@davemloft.net>2017-05-21 13:42:33 -0400
commit9e7b19c51681f041af418ee87e5bc7b4b67e3318 (patch)
tree1d6adc66a95e7c35a23005c53add2e5ac913bf1f
parent332b4fc88698dd0429924a61e09d1734940d80a0 (diff)
downloadop-kernel-dev-9e7b19c51681f041af418ee87e5bc7b4b67e3318.zip
op-kernel-dev-9e7b19c51681f041af418ee87e5bc7b4b67e3318.tar.gz
ila: propagate error code in ila_output
This warning: net/ipv6/ila/ila_lwt.c: In function ‘ila_output’: net/ipv6/ila/ila_lwt.c:42:6: warning: variable ‘err’ set but not used [-Wunused-but-set-variable] It looks like the code attempts to set propagate different error values, but always returned -EINVAL. Compile tested only. Needs review by original author. Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/ipv6/ila/ila_lwt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ila/ila_lwt.c b/net/ipv6/ila/ila_lwt.c
index b3df03e..f4a413a 100644
--- a/net/ipv6/ila/ila_lwt.c
+++ b/net/ipv6/ila/ila_lwt.c
@@ -91,7 +91,7 @@ static int ila_output(struct net *net, struct sock *sk, struct sk_buff *skb)
drop:
kfree_skb(skb);
- return -EINVAL;
+ return err;
}
static int ila_input(struct sk_buff *skb)
OpenPOWER on IntegriCloud