aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/pcmcia/smc91c92_cs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/pcmcia/smc91c92_cs.c')
-rw-r--r--drivers/net/pcmcia/smc91c92_cs.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/drivers/net/pcmcia/smc91c92_cs.c b/drivers/net/pcmcia/smc91c92_cs.c
index 59796e7d09c4..7b6fe89f9db0 100644
--- a/drivers/net/pcmcia/smc91c92_cs.c
+++ b/drivers/net/pcmcia/smc91c92_cs.c
@@ -1228,7 +1228,6 @@ static void smc_hardware_send_packet(struct net_device * dev)
1228 dev_kfree_skb_irq(skb); 1228 dev_kfree_skb_irq(skb);
1229 dev->trans_start = jiffies; 1229 dev->trans_start = jiffies;
1230 netif_start_queue(dev); 1230 netif_start_queue(dev);
1231 return;
1232} 1231}
1233 1232
1234/*====================================================================*/ 1233/*====================================================================*/
@@ -1243,7 +1242,7 @@ static void smc_tx_timeout(struct net_device *dev)
1243 dev->name, inw(ioaddr)&0xff, inw(ioaddr + 2)); 1242 dev->name, inw(ioaddr)&0xff, inw(ioaddr + 2));
1244 dev->stats.tx_errors++; 1243 dev->stats.tx_errors++;
1245 smc_reset(dev); 1244 smc_reset(dev);
1246 dev->trans_start = jiffies; 1245 dev->trans_start = jiffies; /* prevent tx timeout */
1247 smc->saved_skb = NULL; 1246 smc->saved_skb = NULL;
1248 netif_wake_queue(dev); 1247 netif_wake_queue(dev);
1249} 1248}
@@ -1358,7 +1357,6 @@ static void smc_tx_err(struct net_device * dev)
1358 smc->packets_waiting--; 1357 smc->packets_waiting--;
1359 1358
1360 outw(saved_packet, ioaddr + PNR_ARR); 1359 outw(saved_packet, ioaddr + PNR_ARR);
1361 return;
1362} 1360}
1363 1361
1364/*====================================================================*/ 1362/*====================================================================*/
@@ -1578,8 +1576,6 @@ static void smc_rx(struct net_device *dev)
1578 } 1576 }
1579 /* Let the MMU free the memory of this packet. */ 1577 /* Let the MMU free the memory of this packet. */
1580 outw(MC_RELEASE, ioaddr + MMU_CMD); 1578 outw(MC_RELEASE, ioaddr + MMU_CMD);
1581
1582 return;
1583} 1579}
1584 1580
1585/*====================================================================== 1581/*======================================================================
@@ -1610,10 +1606,10 @@ static void set_rx_mode(struct net_device *dev)
1610 rx_cfg_setting = RxStripCRC | RxEnable | RxAllMulti; 1606 rx_cfg_setting = RxStripCRC | RxEnable | RxAllMulti;
1611 else { 1607 else {
1612 if (!netdev_mc_empty(dev)) { 1608 if (!netdev_mc_empty(dev)) {
1613 struct dev_mc_list *mc_addr; 1609 struct netdev_hw_addr *ha;
1614 1610
1615 netdev_for_each_mc_addr(mc_addr, dev) { 1611 netdev_for_each_mc_addr(ha, dev) {
1616 u_int position = ether_crc(6, mc_addr->dmi_addr); 1612 u_int position = ether_crc(6, ha->addr);
1617 multicast_table[position >> 29] |= 1 << ((position >> 26) & 7); 1613 multicast_table[position >> 29] |= 1 << ((position >> 26) & 7);
1618 } 1614 }
1619 } 1615 }
@@ -1629,8 +1625,6 @@ static void set_rx_mode(struct net_device *dev)
1629 outw(rx_cfg_setting, ioaddr + RCR); 1625 outw(rx_cfg_setting, ioaddr + RCR);
1630 SMC_SELECT_BANK(2); 1626 SMC_SELECT_BANK(2);
1631 spin_unlock_irqrestore(&smc->lock, flags); 1627 spin_unlock_irqrestore(&smc->lock, flags);
1632
1633 return;
1634} 1628}
1635 1629
1636/*====================================================================== 1630/*======================================================================