Browse Source

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>
Oliver Hartkopp 15 years ago
parent
commit
6ca8b990e0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      net/can/af_can.c

+ 2 - 2
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++;
 		can_stats.matches_delta++;
 	}
 	}
 
 
-	return 0;
+	return NET_RX_SUCCESS;
 
 
 drop:
 drop:
 	kfree_skb(skb);
 	kfree_skb(skb);
-	return 0;
+	return NET_RX_DROP;
 }
 }
 
 
 /*
 /*