diff options
author | Jiri Pirko <jpirko@redhat.com> | 2010-02-22 04:22:26 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-22 18:45:52 -0500 |
commit | 48e2f183cb1709600012265a2e723f45a350d5fe (patch) | |
tree | 608368bda6f159342c307deca3b03998d25434c8 /drivers/net/fec.c | |
parent | 7a81e9f3ca712db82344ea3ab2a5879241f59c48 (diff) |
net: convert multiple drivers to use netdev_for_each_mc_addr, part4
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/fec.c')
-rw-r--r-- | drivers/net/fec.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/fec.c b/drivers/net/fec.c index d9d14c83f51c..9f98c1c4a344 100644 --- a/drivers/net/fec.c +++ b/drivers/net/fec.c | |||
@@ -1575,7 +1575,7 @@ static void set_multicast_list(struct net_device *dev) | |||
1575 | { | 1575 | { |
1576 | struct fec_enet_private *fep = netdev_priv(dev); | 1576 | struct fec_enet_private *fep = netdev_priv(dev); |
1577 | struct dev_mc_list *dmi; | 1577 | struct dev_mc_list *dmi; |
1578 | unsigned int i, j, bit, data, crc, tmp; | 1578 | unsigned int i, bit, data, crc, tmp; |
1579 | unsigned char hash; | 1579 | unsigned char hash; |
1580 | 1580 | ||
1581 | if (dev->flags & IFF_PROMISC) { | 1581 | if (dev->flags & IFF_PROMISC) { |
@@ -1604,9 +1604,7 @@ static void set_multicast_list(struct net_device *dev) | |||
1604 | writel(0, fep->hwp + FEC_GRP_HASH_TABLE_HIGH); | 1604 | writel(0, fep->hwp + FEC_GRP_HASH_TABLE_HIGH); |
1605 | writel(0, fep->hwp + FEC_GRP_HASH_TABLE_LOW); | 1605 | writel(0, fep->hwp + FEC_GRP_HASH_TABLE_LOW); |
1606 | 1606 | ||
1607 | dmi = dev->mc_list; | 1607 | netdev_for_each_mc_addr(dmi, dev) { |
1608 | |||
1609 | for (j = 0; j < netdev_mc_count(dev); j++, dmi = dmi->next) { | ||
1610 | /* Only support group multicast for now */ | 1608 | /* Only support group multicast for now */ |
1611 | if (!(dmi->dmi_addr[0] & 1)) | 1609 | if (!(dmi->dmi_addr[0] & 1)) |
1612 | continue; | 1610 | continue; |