diff options
Diffstat (limited to 'drivers/net/hamachi.c')
-rw-r--r-- | drivers/net/hamachi.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/net/hamachi.c b/drivers/net/hamachi.c index 5d6f13879592..61f2b1cfcd46 100644 --- a/drivers/net/hamachi.c +++ b/drivers/net/hamachi.c | |||
@@ -859,7 +859,6 @@ static void mdio_write(struct net_device *dev, int phy_id, int location, int val | |||
859 | for (i = 10000; i >= 0; i--) | 859 | for (i = 10000; i >= 0; i--) |
860 | if ((readw(ioaddr + MII_Status) & 1) == 0) | 860 | if ((readw(ioaddr + MII_Status) & 1) == 0) |
861 | break; | 861 | break; |
862 | return; | ||
863 | } | 862 | } |
864 | 863 | ||
865 | 864 | ||
@@ -1225,8 +1224,6 @@ static void hamachi_init_ring(struct net_device *dev) | |||
1225 | } | 1224 | } |
1226 | /* Mark the last entry of the ring */ | 1225 | /* Mark the last entry of the ring */ |
1227 | hmp->tx_ring[TX_RING_SIZE-1].status_n_length |= cpu_to_le32(DescEndRing); | 1226 | hmp->tx_ring[TX_RING_SIZE-1].status_n_length |= cpu_to_le32(DescEndRing); |
1228 | |||
1229 | return; | ||
1230 | } | 1227 | } |
1231 | 1228 | ||
1232 | 1229 | ||
@@ -1857,12 +1854,12 @@ static void set_rx_mode(struct net_device *dev) | |||
1857 | /* Too many to match, or accept all multicasts. */ | 1854 | /* Too many to match, or accept all multicasts. */ |
1858 | writew(0x000B, ioaddr + AddrMode); | 1855 | writew(0x000B, ioaddr + AddrMode); |
1859 | } else if (!netdev_mc_empty(dev)) { /* Must use the CAM filter. */ | 1856 | } else if (!netdev_mc_empty(dev)) { /* Must use the CAM filter. */ |
1860 | struct dev_mc_list *mclist; | 1857 | struct netdev_hw_addr *ha; |
1861 | int i = 0; | 1858 | int i = 0; |
1862 | 1859 | ||
1863 | netdev_for_each_mc_addr(mclist, dev) { | 1860 | netdev_for_each_mc_addr(ha, dev) { |
1864 | writel(*(u32*)(mclist->dmi_addr), ioaddr + 0x100 + i*8); | 1861 | writel(*(u32 *)(ha->addr), ioaddr + 0x100 + i*8); |
1865 | writel(0x20000 | (*(u16*)&mclist->dmi_addr[4]), | 1862 | writel(0x20000 | (*(u16 *)&ha->addr[4]), |
1866 | ioaddr + 0x104 + i*8); | 1863 | ioaddr + 0x104 + i*8); |
1867 | i++; | 1864 | i++; |
1868 | } | 1865 | } |