From: Oliver Hartkopp Date: Sat, 29 Aug 2009 06:45:09 +0000 (+0000) Subject: can: use correct NET_RX_ return values X-Git-Tag: v2.6.32-rc1~703^2~214 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=6ca8b990e07914a87fd1f6dfc5507f5e1c4572e2;p=linux.git can: use correct NET_RX_ return values Dropped skb's should be documented by an appropriate return value. Use the correct NET_RX_DROP and NET_RX_SUCCESS values for that reason. Signed-off-by: Oliver Hartkopp Signed-off-by: David S. Miller --- diff --git a/net/can/af_can.c b/net/can/af_can.c index f9c027be78b2..ef1c43a2ed56 100644 --- a/net/can/af_can.c +++ b/net/can/af_can.c @@ -686,11 +686,11 @@ static int can_rcv(struct sk_buff *skb, struct net_device *dev, can_stats.matches_delta++; } - return 0; + return NET_RX_SUCCESS; drop: kfree_skb(skb); - return 0; + return NET_RX_DROP; } /*