mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
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:
parent
5de3fcab91
commit
6ca8b990e0
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue