can: use correct NET_RX_ return values
Subsystems (3)
PATCH 1/1 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 <[email protected]>
---
net/can/af_can.c +2 -2
@@ -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 ; }/*
From: Oliver Hartkopp <[email protected]>
Date: Sat, 29 Aug 2009 18:45:09 +0200
Quoted 4 lines
Dropped skb's should be documented by an appropriate return value. Use the correct
NET_RX_DROPandNET_RX_SUCCESSvalues for that reason.Signed-off-by Oliver Hartkopp <[email protected]>
Applied, thanks.