aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/sgi-xp
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/misc/sgi-xp')
-rw-r--r--drivers/misc/sgi-xp/xpnet.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/misc/sgi-xp/xpnet.c b/drivers/misc/sgi-xp/xpnet.c
index 5d778ec8cdb2..16f0abda1423 100644
--- a/drivers/misc/sgi-xp/xpnet.c
+++ b/drivers/misc/sgi-xp/xpnet.c
@@ -240,7 +240,6 @@ xpnet_receive(short partid, int channel, struct xpnet_message *msg)
240 (void *)skb->head, (void *)skb->data, skb_tail_pointer(skb), 240 (void *)skb->head, (void *)skb->data, skb_tail_pointer(skb),
241 skb_end_pointer(skb), skb->len); 241 skb_end_pointer(skb), skb->len);
242 242
243 xpnet_device->last_rx = jiffies;
244 xpnet_device->stats.rx_packets++; 243 xpnet_device->stats.rx_packets++;
245 xpnet_device->stats.rx_bytes += skb->len + ETH_HLEN; 244 xpnet_device->stats.rx_bytes += skb->len + ETH_HLEN;
246 245
@@ -436,7 +435,7 @@ xpnet_dev_hard_start_xmit(struct sk_buff *skb, struct net_device *dev)
436 435
437 if (skb->data[0] == 0x33) { 436 if (skb->data[0] == 0x33) {
438 dev_kfree_skb(skb); 437 dev_kfree_skb(skb);
439 return 0; /* nothing needed to be done */ 438 return NETDEV_TX_OK; /* nothing needed to be done */
440 } 439 }
441 440
442 /* 441 /*
@@ -503,7 +502,7 @@ xpnet_dev_hard_start_xmit(struct sk_buff *skb, struct net_device *dev)
503 dev->stats.tx_packets++; 502 dev->stats.tx_packets++;
504 dev->stats.tx_bytes += skb->len; 503 dev->stats.tx_bytes += skb->len;
505 504
506 return 0; 505 return NETDEV_TX_OK;
507} 506}
508 507
509/* 508/*