aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/depca.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/depca.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/depca.c')
-rw-r--r--drivers/net/depca.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/depca.c b/drivers/net/depca.c
index 314bc96689f4..64a569bc92a6 100644
--- a/drivers/net/depca.c
+++ b/drivers/net/depca.c
@@ -1287,9 +1287,8 @@ static void SetMulticastFilter(struct net_device *dev)
1287 lp->init_block.mcast_table[i] = 0; 1287 lp->init_block.mcast_table[i] = 0;
1288 } 1288 }
1289 /* Add multicast addresses */ 1289 /* Add multicast addresses */
1290 for (i = 0; i < netdev_mc_count(dev); i++) { /* for each address in the list */ 1290 netdev_for_each_mc_addr(dmi, dev) {
1291 addrs = dmi->dmi_addr; 1291 addrs = dmi->dmi_addr;
1292 dmi = dmi->next;
1293 if ((*addrs & 0x01) == 1) { /* multicast address? */ 1292 if ((*addrs & 0x01) == 1) { /* multicast address? */
1294 crc = ether_crc(ETH_ALEN, addrs); 1293 crc = ether_crc(ETH_ALEN, addrs);
1295 hashcode = (crc & 1); /* hashcode is 6 LSb of CRC ... */ 1294 hashcode = (crc & 1); /* hashcode is 6 LSb of CRC ... */