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.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/net/appletalk/cops.c b/drivers/net/appletalk/cops.c
index 6f8d6206b5c4..748c9f526e71 100644
--- a/drivers/net/appletalk/cops.c
+++ b/drivers/net/appletalk/cops.c
@@ -593,8 +593,6 @@ static void cops_load (struct net_device *dev)
593 tangent_wait_reset(ioaddr); 593 tangent_wait_reset(ioaddr);
594 inb(ioaddr); /* Clear initial ready signal. */ 594 inb(ioaddr); /* Clear initial ready signal. */
595 } 595 }
596
597 return;
598} 596}
599 597
600/* 598/*
@@ -701,8 +699,6 @@ static void cops_poll(unsigned long ltdev)
701 /* poll 20 times per second */ 699 /* poll 20 times per second */
702 cops_timer.expires = jiffies + HZ/20; 700 cops_timer.expires = jiffies + HZ/20;
703 add_timer(&cops_timer); 701 add_timer(&cops_timer);
704
705 return;
706} 702}
707 703
708/* 704/*
@@ -866,7 +862,7 @@ static void cops_timeout(struct net_device *dev)
866 } 862 }
867 printk(KERN_WARNING "%s: Transmit timed out.\n", dev->name); 863 printk(KERN_WARNING "%s: Transmit timed out.\n", dev->name);
868 cops_jumpstart(dev); /* Restart the card. */ 864 cops_jumpstart(dev); /* Restart the card. */
869 dev->trans_start = jiffies; 865 dev->trans_start = jiffies; /* prevent tx timeout */
870 netif_wake_queue(dev); 866 netif_wake_queue(dev);
871} 867}
872 868
@@ -919,9 +915,8 @@ static netdev_tx_t cops_send_packet(struct sk_buff *skb,
919 /* Done sending packet, update counters and cleanup. */ 915 /* Done sending packet, update counters and cleanup. */
920 dev->stats.tx_packets++; 916 dev->stats.tx_packets++;
921 dev->stats.tx_bytes += skb->len; 917 dev->stats.tx_bytes += skb->len;
922 dev->trans_start = jiffies;
923 dev_kfree_skb (skb); 918 dev_kfree_skb (skb);
924 return NETDEV_TX_OK; 919 return NETDEV_TX_OK;
925} 920}
926 921
927/* 922/*