aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/declance.c
diff options
context:
space:
mode:
authorJiri Pirko <jpirko@redhat.com>2010-02-17 06:09:31 -0500
committerDavid S. Miller <davem@davemloft.net>2010-02-17 16:27:12 -0500
commite1d444771e0895c7706bc99857d69e4f2a58a531 (patch)
treeb17410e94c6c78416b6e125fad0c4ed208edc39f /drivers/net/declance.c
parentd7b855c2dcc89587f36338bd383203322efb9903 (diff)
net: convert multiple drivers to use netdev_for_each_mc_addr
Signed-off-by: Jiri Pirko <jpirko@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/declance.c')
-rw-r--r--drivers/net/declance.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/declance.c b/drivers/net/declance.c
index 76e0de6a4263..8cf3cc6f20e2 100644
--- a/drivers/net/declance.c
+++ b/drivers/net/declance.c
@@ -940,9 +940,8 @@ static void lance_load_multicast(struct net_device *dev)
940{ 940{
941 struct lance_private *lp = netdev_priv(dev); 941 struct lance_private *lp = netdev_priv(dev);
942 volatile u16 *ib = (volatile u16 *)dev->mem_start; 942 volatile u16 *ib = (volatile u16 *)dev->mem_start;
943 struct dev_mc_list *dmi = dev->mc_list; 943 struct dev_mc_list *dmi;
944 char *addrs; 944 char *addrs;
945 int i;
946 u32 crc; 945 u32 crc;
947 946
948 /* set all multicast bits */ 947 /* set all multicast bits */
@@ -960,9 +959,8 @@ static void lance_load_multicast(struct net_device *dev)
960 *lib_ptr(ib, filter[3], lp->type) = 0; 959 *lib_ptr(ib, filter[3], lp->type) = 0;
961 960
962 /* Add addresses */ 961 /* Add addresses */
963 for (i = 0; i < netdev_mc_count(dev); i++) { 962 netdev_for_each_mc_addr(dmi, dev) {
964 addrs = dmi->dmi_addr; 963 addrs = dmi->dmi_addr;
965 dmi = dmi->next;
966 964
967 /* multicast address? */ 965 /* multicast address? */
968 if (!(*addrs & 1)) 966 if (!(*addrs & 1))