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 <oliver@hartkopp.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Oliver Hartkopp 2009-08-29 06:45:09 +00:00 committed by David S. Miller
parent 5de3fcab91
commit 6ca8b990e0

View file

@ -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;
}
/*