]> Pileus Git - ~andy/linux/blobdiff - drivers/net/ipg.c
ath5k: Use high bitrates for ACK/CTS
[~andy/linux] / drivers / net / ipg.c
index 3ca49e348c9d3ede2dde1134ce2edec4bc924d68..150415e83f61e21e3cdc25f85a9d892b849c7016 100644 (file)
@@ -608,8 +608,7 @@ static void ipg_nic_set_multicast_list(struct net_device *dev)
        hashtable[1] = 0x00000000;
 
        /* Cycle through all multicast addresses to filter. */
-       for (mc_list_ptr = dev->mc_list;
-            mc_list_ptr != NULL; mc_list_ptr = mc_list_ptr->next) {
+       netdev_for_each_mc_addr(mc_list_ptr, dev) {
                /* Calculate CRC result for each multicast address. */
                hashindex = crc32_le(0xffffffff, mc_list_ptr->dmi_addr,
                                     ETH_ALEN);