Skip to content

Commit

Permalink
ila: propagate error code in ila_output
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
shemminger authored and davem330 committed May 21, 2017
1 parent 332b4fc commit 9e7b19c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv6/ila/ila_lwt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9e7b19c

Please sign in to comment.