aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/appletalk/cops.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/appletalk/cops.c')
-rw-r--r--drivers/net/appletalk/cops.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/appletalk/cops.c b/drivers/net/appletalk/cops.c
index 73b38c204eb9..14e1d952226e 100644
--- a/drivers/net/appletalk/cops.c
+++ b/drivers/net/appletalk/cops.c
@@ -56,7 +56,6 @@ static const char *version =
56#include <linux/ptrace.h> 56#include <linux/ptrace.h>
57#include <linux/ioport.h> 57#include <linux/ioport.h>
58#include <linux/in.h> 58#include <linux/in.h>
59#include <linux/slab.h>
60#include <linux/string.h> 59#include <linux/string.h>
61#include <linux/errno.h> 60#include <linux/errno.h>
62#include <linux/init.h> 61#include <linux/init.h>
@@ -867,7 +866,7 @@ static void cops_timeout(struct net_device *dev)
867 } 866 }
868 printk(KERN_WARNING "%s: Transmit timed out.\n", dev->name); 867 printk(KERN_WARNING "%s: Transmit timed out.\n", dev->name);
869 cops_jumpstart(dev); /* Restart the card. */ 868 cops_jumpstart(dev); /* Restart the card. */
870 dev->trans_start = jiffies; 869 dev->trans_start = jiffies; /* prevent tx timeout */
871 netif_wake_queue(dev); 870 netif_wake_queue(dev);
872} 871}
873 872
@@ -920,9 +919,8 @@ static netdev_tx_t cops_send_packet(struct sk_buff *skb,
920 /* Done sending packet, update counters and cleanup. */ 919 /* Done sending packet, update counters and cleanup. */
921 dev->stats.tx_packets++; 920 dev->stats.tx_packets++;
922 dev->stats.tx_bytes += skb->len; 921 dev->stats.tx_bytes += skb->len;
923 dev->trans_start = jiffies;
924 dev_kfree_skb (skb); 922 dev_kfree_skb (skb);
925 return NETDEV_TX_OK; 923 return NETDEV_TX_OK;
926} 924}
927 925
928/* 926/*