aboutsummaryrefslogtreecommitdiffstats
path: root/net/can/af_can.c
diff options
context:
space:
mode:
authorOliver Hartkopp <oliver@hartkopp.net>2009-08-29 06:45:09 +0000
committerDavid S. Miller <davem@davemloft.net>2009-08-30 22:13:18 -0700
commit6ca8b990e07914a87fd1f6dfc5507f5e1c4572e2 (patch)
treec2a41b12a0eb57399784dfa42d331f5bec09e6ab /net/can/af_can.c
parent5de3fcab91b0e1809eec030355d15801daf25083 (diff)
downloadkernel_samsung_smdk4412-6ca8b990e07914a87fd1f6dfc5507f5e1c4572e2.zip
kernel_samsung_smdk4412-6ca8b990e07914a87fd1f6dfc5507f5e1c4572e2.tar.gz
kernel_samsung_smdk4412-6ca8b990e07914a87fd1f6dfc5507f5e1c4572e2.tar.bz2
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>
Diffstat (limited to 'net/can/af_can.c')
-rw-r--r--net/can/af_can.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/can/af_can.c b/net/can/af_can.c
index f9c027b..ef1c43a 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;
}
/*