aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/7990.c
diff options
context:
space:
mode:
authorJiri Pirko <jpirko@redhat.com>2010-02-19 19:13:58 -0500
committerDavid S. Miller <davem@davemloft.net>2010-02-22 18:45:51 -0500
commit0ddf477b8a9b02412a6cabd51c486998811c7dd1 (patch)
treedf82cf6637248439897153aca2f8fa6216003b61 /drivers/net/7990.c
parent3b9a7728d878a3e7adc79fb89c3bb9ebc23760d7 (diff)
net: convert multiple drivers to use netdev_for_each_mc_addr, part3
Signed-off-by: Jiri Pirko <jpirko@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
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))