net: remove NET_RX_BAD and NET_RX_CN* defines
almost no users in the tree; and the few that use them treat them like NET_RX_DROP. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
6b1344724e
commit
0e8635a8e1
@@ -114,11 +114,6 @@ static int rionet_rx_clean(struct net_device *ndev)
|
||||
|
||||
if (error == NET_RX_DROP) {
|
||||
ndev->stats.rx_dropped++;
|
||||
} else if (error == NET_RX_BAD) {
|
||||
if (netif_msg_rx_err(rnet))
|
||||
printk(KERN_WARNING "%s: bad rx packet\n",
|
||||
DRV_NAME);
|
||||
ndev->stats.rx_errors++;
|
||||
} else {
|
||||
ndev->stats.rx_packets++;
|
||||
ndev->stats.rx_bytes += RIO_MAX_MSG_SIZE;
|
||||
|
Reference in New Issue
Block a user