diff options
Diffstat (limited to 'drivers/net/ethoc.c')
-rw-r--r-- | drivers/net/ethoc.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/ethoc.c b/drivers/net/ethoc.c index a8d92503226e..14cbde5cf68e 100644 --- a/drivers/net/ethoc.c +++ b/drivers/net/ethoc.c | |||
@@ -756,7 +756,7 @@ static void ethoc_set_multicast_list(struct net_device *dev) | |||
756 | { | 756 | { |
757 | struct ethoc *priv = netdev_priv(dev); | 757 | struct ethoc *priv = netdev_priv(dev); |
758 | u32 mode = ethoc_read(priv, MODER); | 758 | u32 mode = ethoc_read(priv, MODER); |
759 | struct dev_mc_list *mc; | 759 | struct netdev_hw_addr *ha; |
760 | u32 hash[2] = { 0, 0 }; | 760 | u32 hash[2] = { 0, 0 }; |
761 | 761 | ||
762 | /* set loopback mode if requested */ | 762 | /* set loopback mode if requested */ |
@@ -784,8 +784,8 @@ static void ethoc_set_multicast_list(struct net_device *dev) | |||
784 | hash[0] = 0xffffffff; | 784 | hash[0] = 0xffffffff; |
785 | hash[1] = 0xffffffff; | 785 | hash[1] = 0xffffffff; |
786 | } else { | 786 | } else { |
787 | netdev_for_each_mc_addr(mc, dev) { | 787 | netdev_for_each_mc_addr(ha, dev) { |
788 | u32 crc = ether_crc(ETH_ALEN, mc->dmi_addr); | 788 | u32 crc = ether_crc(ETH_ALEN, ha->addr); |
789 | int bit = (crc >> 26) & 0x3f; | 789 | int bit = (crc >> 26) & 0x3f; |
790 | hash[bit >> 5] |= 1 << (bit & 0x1f); | 790 | hash[bit >> 5] |= 1 << (bit & 0x1f); |
791 | } | 791 | } |
@@ -851,7 +851,6 @@ static netdev_tx_t ethoc_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
851 | netif_stop_queue(dev); | 851 | netif_stop_queue(dev); |
852 | } | 852 | } |
853 | 853 | ||
854 | dev->trans_start = jiffies; | ||
855 | spin_unlock_irq(&priv->lock); | 854 | spin_unlock_irq(&priv->lock); |
856 | out: | 855 | out: |
857 | dev_kfree_skb(skb); | 856 | dev_kfree_skb(skb); |
@@ -1040,7 +1039,6 @@ static int ethoc_probe(struct platform_device *pdev) | |||
1040 | netdev->features |= 0; | 1039 | netdev->features |= 0; |
1041 | 1040 | ||
1042 | /* setup NAPI */ | 1041 | /* setup NAPI */ |
1043 | memset(&priv->napi, 0, sizeof(priv->napi)); | ||
1044 | netif_napi_add(netdev, &priv->napi, ethoc_poll, 64); | 1042 | netif_napi_add(netdev, &priv->napi, ethoc_poll, 64); |
1045 | 1043 | ||
1046 | spin_lock_init(&priv->rx_lock); | 1044 | spin_lock_init(&priv->rx_lock); |