aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/ipv6/udp.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c
index 28c4aa5078fc..b36694b6716e 100644
--- a/net/ipv6/udp.c
+++ b/net/ipv6/udp.c
@@ -766,11 +766,9 @@ static int udp6_unicast_rcv_skb(struct sock *sk, struct sk_buff *skb,
766 766
767 ret = udpv6_queue_rcv_skb(sk, skb); 767 ret = udpv6_queue_rcv_skb(sk, skb);
768 768
769 /* a return value > 0 means to resubmit the input, but 769 /* a return value > 0 means to resubmit the input */
770 * it wants the return to be -protocol, or 0
771 */
772 if (ret > 0) 770 if (ret > 0)
773 return -ret; 771 return ret;
774 return 0; 772 return 0;
775} 773}
776 774