aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/usb/smsc75xx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/usb/smsc75xx.c')
-rw-r--r--drivers/net/usb/smsc75xx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/usb/smsc75xx.c b/drivers/net/usb/smsc75xx.c
index 300e3e764fa2..b8b00d06ea79 100644
--- a/drivers/net/usb/smsc75xx.c
+++ b/drivers/net/usb/smsc75xx.c
@@ -444,14 +444,14 @@ static void smsc75xx_set_multicast(struct net_device *netdev)
444 netif_dbg(dev, drv, dev->net, "receive all multicast enabled"); 444 netif_dbg(dev, drv, dev->net, "receive all multicast enabled");
445 pdata->rfe_ctl |= RFE_CTL_AM | RFE_CTL_DPF; 445 pdata->rfe_ctl |= RFE_CTL_AM | RFE_CTL_DPF;
446 } else if (!netdev_mc_empty(dev->net)) { 446 } else if (!netdev_mc_empty(dev->net)) {
447 struct dev_mc_list *mc_list; 447 struct netdev_hw_addr *ha;
448 448
449 netif_dbg(dev, drv, dev->net, "receive multicast hash filter"); 449 netif_dbg(dev, drv, dev->net, "receive multicast hash filter");
450 450
451 pdata->rfe_ctl |= RFE_CTL_MHF | RFE_CTL_DPF; 451 pdata->rfe_ctl |= RFE_CTL_MHF | RFE_CTL_DPF;
452 452
453 netdev_for_each_mc_addr(mc_list, netdev) { 453 netdev_for_each_mc_addr(ha, netdev) {
454 u32 bitnum = smsc75xx_hash(mc_list->dmi_addr); 454 u32 bitnum = smsc75xx_hash(ha->addr);
455 pdata->multicast_hash_table[bitnum / 32] |= 455 pdata->multicast_hash_table[bitnum / 32] |=
456 (1 << (bitnum % 32)); 456 (1 << (bitnum % 32));
457 } 457 }