diff options
Diffstat (limited to 'drivers/net/rionet.c')
-rw-r--r-- | drivers/net/rionet.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/net/rionet.c b/drivers/net/rionet.c index 8702e7acdee6..bc98e7f69ee9 100644 --- a/drivers/net/rionet.c +++ b/drivers/net/rionet.c | |||
@@ -114,11 +114,6 @@ static int rionet_rx_clean(struct net_device *ndev) | |||
114 | 114 | ||
115 | if (error == NET_RX_DROP) { | 115 | if (error == NET_RX_DROP) { |
116 | ndev->stats.rx_dropped++; | 116 | ndev->stats.rx_dropped++; |
117 | } else if (error == NET_RX_BAD) { | ||
118 | if (netif_msg_rx_err(rnet)) | ||
119 | printk(KERN_WARNING "%s: bad rx packet\n", | ||
120 | DRV_NAME); | ||
121 | ndev->stats.rx_errors++; | ||
122 | } else { | 117 | } else { |
123 | ndev->stats.rx_packets++; | 118 | ndev->stats.rx_packets++; |
124 | ndev->stats.rx_bytes += RIO_MAX_MSG_SIZE; | 119 | ndev->stats.rx_bytes += RIO_MAX_MSG_SIZE; |
@@ -208,7 +203,7 @@ static int rionet_start_xmit(struct sk_buff *skb, struct net_device *ndev) | |||
208 | 203 | ||
209 | spin_unlock_irqrestore(&rnet->tx_lock, flags); | 204 | spin_unlock_irqrestore(&rnet->tx_lock, flags); |
210 | 205 | ||
211 | return 0; | 206 | return NETDEV_TX_OK; |
212 | } | 207 | } |
213 | 208 | ||
214 | static void rionet_dbell_event(struct rio_mport *mport, void *dev_id, u16 sid, u16 tid, | 209 | static void rionet_dbell_event(struct rio_mport *mport, void *dev_id, u16 sid, u16 tid, |