aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/depca.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/depca.c')
-rw-r--r--drivers/net/depca.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/net/depca.c b/drivers/net/depca.c
index a88300a0d1e8..bf66e9b3b19e 100644
--- a/drivers/net/depca.c
+++ b/drivers/net/depca.c
@@ -921,7 +921,7 @@ static void depca_tx_timeout(struct net_device *dev)
921 STOP_DEPCA; 921 STOP_DEPCA;
922 depca_init_ring(dev); 922 depca_init_ring(dev);
923 LoadCSRs(dev); 923 LoadCSRs(dev);
924 dev->trans_start = jiffies; 924 dev->trans_start = jiffies; /* prevent tx timeout */
925 netif_wake_queue(dev); 925 netif_wake_queue(dev);
926 InitRestartDepca(dev); 926 InitRestartDepca(dev);
927} 927}
@@ -954,7 +954,6 @@ static netdev_tx_t depca_start_xmit(struct sk_buff *skb,
954 outw(CSR0, DEPCA_ADDR); 954 outw(CSR0, DEPCA_ADDR);
955 outw(INEA | TDMD, DEPCA_DATA); 955 outw(INEA | TDMD, DEPCA_DATA);
956 956
957 dev->trans_start = jiffies;
958 dev_kfree_skb(skb); 957 dev_kfree_skb(skb);
959 } 958 }
960 if (TX_BUFFS_AVAIL) 959 if (TX_BUFFS_AVAIL)
@@ -1204,8 +1203,6 @@ static void LoadCSRs(struct net_device *dev)
1204 outw(ACON, DEPCA_DATA); 1203 outw(ACON, DEPCA_DATA);
1205 1204
1206 outw(CSR0, DEPCA_ADDR); /* Point back to CSR0 */ 1205 outw(CSR0, DEPCA_ADDR); /* Point back to CSR0 */
1207
1208 return;
1209} 1206}
1210 1207
1211static int InitRestartDepca(struct net_device *dev) 1208static int InitRestartDepca(struct net_device *dev)
@@ -1303,8 +1300,6 @@ static void SetMulticastFilter(struct net_device *dev)
1303 } 1300 }
1304 } 1301 }
1305 } 1302 }
1306
1307 return;
1308} 1303}
1309 1304
1310static int __init depca_common_init (u_long ioaddr, struct net_device **devp) 1305static int __init depca_common_init (u_long ioaddr, struct net_device **devp)
@@ -1909,8 +1904,6 @@ static void depca_dbg_open(struct net_device *dev)
1909 outw(CSR3, DEPCA_ADDR); 1904 outw(CSR3, DEPCA_ADDR);
1910 printk("CSR3: 0x%4.4x\n", inw(DEPCA_DATA)); 1905 printk("CSR3: 0x%4.4x\n", inw(DEPCA_DATA));
1911 } 1906 }
1912
1913 return;
1914} 1907}
1915 1908
1916/* 1909/*