aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/7990.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/7990.c')
-rw-r--r--drivers/net/7990.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/7990.c b/drivers/net/7990.c
index 079d0be37821..4e9a5a20b6a6 100644
--- a/drivers/net/7990.c
+++ b/drivers/net/7990.c
@@ -595,9 +595,8 @@ static void lance_load_multicast (struct net_device *dev)
595 struct lance_private *lp = netdev_priv(dev); 595 struct lance_private *lp = netdev_priv(dev);
596 volatile struct lance_init_block *ib = lp->init_block; 596 volatile struct lance_init_block *ib = lp->init_block;
597 volatile u16 *mcast_table = (u16 *)&ib->filter; 597 volatile u16 *mcast_table = (u16 *)&ib->filter;
598 struct dev_mc_list *dmi=dev->mc_list; 598 struct dev_mc_list *dmi;
599 char *addrs; 599 char *addrs;
600 int i;
601 u32 crc; 600 u32 crc;
602 601
603 /* set all multicast bits */ 602 /* set all multicast bits */
@@ -611,9 +610,8 @@ static void lance_load_multicast (struct net_device *dev)
611 ib->filter [1] = 0; 610 ib->filter [1] = 0;
612 611
613 /* Add addresses */ 612 /* Add addresses */
614 for (i = 0; i < netdev_mc_count(dev); i++){ 613 netdev_for_each_mc_addr(dmi, dev) {
615 addrs = dmi->dmi_addr; 614 addrs = dmi->dmi_addr;
616 dmi = dmi->next;
617 615
618 /* multicast address? */ 616 /* multicast address? */
619 if (!(*addrs & 1)) 617 if (!(*addrs & 1))