net: convert multiple drivers to use netdev_for_each_mc_addr, part5 V2
[deliverable/linux.git] / drivers / net / niu.c
index 5e604e305d95246b498c50f895198f09b55339bb..0678f3106cbcca5981cd1aa50df08919e04968e2 100644 (file)
@@ -6365,7 +6365,7 @@ static void niu_set_rx_mode(struct net_device *dev)
                for (i = 0; i < 16; i++)
                        hash[i] = 0xffff;
        } else if (!netdev_mc_empty(dev)) {
-               for (addr = dev->mc_list; addr; addr = addr->next) {
+               netdev_for_each_mc_addr(addr, dev) {
                        u32 crc = ether_crc_le(ETH_ALEN, addr->da_addr);
 
                        crc >>= 24;
This page took 0.108508 seconds and 5 git commands to generate.