diff options
Diffstat (limited to 'drivers/net/tehuti.c')
-rw-r--r-- | drivers/net/tehuti.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/tehuti.c b/drivers/net/tehuti.c index 2517cc00ac2a..0c9780217c87 100644 --- a/drivers/net/tehuti.c +++ b/drivers/net/tehuti.c | |||
@@ -824,10 +824,8 @@ static void bdx_setmulti(struct net_device *ndev) | |||
824 | /* TBD: sort addreses and write them in ascending order | 824 | /* TBD: sort addreses and write them in ascending order |
825 | * into RX_MAC_MCST regs. we skip this phase now and accept ALL | 825 | * into RX_MAC_MCST regs. we skip this phase now and accept ALL |
826 | * multicast frames throu IMF */ | 826 | * multicast frames throu IMF */ |
827 | mclist = ndev->mc_list; | ||
828 | |||
829 | /* accept the rest of addresses throu IMF */ | 827 | /* accept the rest of addresses throu IMF */ |
830 | for (; mclist; mclist = mclist->next) { | 828 | netdev_for_each_mc_addr(mclist, ndev) { |
831 | hash = 0; | 829 | hash = 0; |
832 | for (i = 0; i < ETH_ALEN; i++) | 830 | for (i = 0; i < ETH_ALEN; i++) |
833 | hash ^= mclist->dmi_addr[i]; | 831 | hash ^= mclist->dmi_addr[i]; |