]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/net/tokenring/tms380tr.c
net: use netdev_mc_count and netdev_mc_empty when appropriate
[net-next-2.6.git] / drivers / net / tokenring / tms380tr.c
index e3c42f5ac4a9f777e859eeef173a21b13916e4f2..6b8868959b8584aa3fc62f4aa6b465f7a5480a89 100644 (file)
@@ -1214,7 +1214,7 @@ static void tms380tr_set_multicast_list(struct net_device *dev)
                {
                        int i;
                        struct dev_mc_list *mclist = dev->mc_list;
-                       for (i=0; i< dev->mc_count; i++)
+                       for (i=0; i< netdev_mc_count(dev); i++)
                        {
                                ((char *)(&tp->ocpl.FunctAddr))[0] |=
                                        mclist->dmi_addr[2];