diff options
Diffstat (limited to 'drivers/net/smsc9420.c')
-rw-r--r-- | drivers/net/smsc9420.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/smsc9420.c b/drivers/net/smsc9420.c index 34fa10d8ad40..5409ec1a5fd7 100644 --- a/drivers/net/smsc9420.c +++ b/drivers/net/smsc9420.c | |||
@@ -1063,12 +1063,12 @@ static void smsc9420_set_multicast_list(struct net_device *dev) | |||
1063 | mac_cr |= MAC_CR_MCPAS_; | 1063 | mac_cr |= MAC_CR_MCPAS_; |
1064 | mac_cr &= (~MAC_CR_HPFILT_); | 1064 | mac_cr &= (~MAC_CR_HPFILT_); |
1065 | } else if (!netdev_mc_empty(dev)) { | 1065 | } else if (!netdev_mc_empty(dev)) { |
1066 | struct dev_mc_list *mc_list; | 1066 | struct netdev_hw_addr *ha; |
1067 | u32 hash_lo = 0, hash_hi = 0; | 1067 | u32 hash_lo = 0, hash_hi = 0; |
1068 | 1068 | ||
1069 | smsc_dbg(HW, "Multicast filter enabled"); | 1069 | smsc_dbg(HW, "Multicast filter enabled"); |
1070 | netdev_for_each_mc_addr(mc_list, dev) { | 1070 | netdev_for_each_mc_addr(ha, dev) { |
1071 | u32 bit_num = smsc9420_hash(mc_list->dmi_addr); | 1071 | u32 bit_num = smsc9420_hash(ha->addr); |
1072 | u32 mask = 1 << (bit_num & 0x1F); | 1072 | u32 mask = 1 << (bit_num & 0x1F); |
1073 | 1073 | ||
1074 | if (bit_num & 0x20) | 1074 | if (bit_num & 0x20) |