diff options
author | Jiri Pirko <jpirko@redhat.com> | 2010-02-17 06:09:31 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-17 16:27:12 -0500 |
commit | e1d444771e0895c7706bc99857d69e4f2a58a531 (patch) | |
tree | b17410e94c6c78416b6e125fad0c4ed208edc39f /drivers/net/defxx.c | |
parent | d7b855c2dcc89587f36338bd383203322efb9903 (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/defxx.c')
-rw-r--r-- | drivers/net/defxx.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/net/defxx.c b/drivers/net/defxx.c index 5adb1e03956d..ed53a8d45f4e 100644 --- a/drivers/net/defxx.c +++ b/drivers/net/defxx.c | |||
@@ -2240,12 +2240,11 @@ static void dfx_ctl_set_multicast_list(struct net_device *dev) | |||
2240 | 2240 | ||
2241 | /* Copy addresses to multicast address table, then update adapter CAM */ | 2241 | /* Copy addresses to multicast address table, then update adapter CAM */ |
2242 | 2242 | ||
2243 | dmi = dev->mc_list; /* point to first multicast addr */ | 2243 | i = 0; |
2244 | for (i=0; i < bp->mc_count; i++) | 2244 | netdev_for_each_mc_addr(dmi, dev) |
2245 | { | 2245 | memcpy(&bp->mc_table[i++ * FDDI_K_ALEN], |
2246 | memcpy(&bp->mc_table[i*FDDI_K_ALEN], dmi->dmi_addr, FDDI_K_ALEN); | 2246 | dmi->dmi_addr, FDDI_K_ALEN); |
2247 | dmi = dmi->next; /* point to next multicast addr */ | 2247 | |
2248 | } | ||
2249 | if (dfx_ctl_update_cam(bp) != DFX_K_SUCCESS) | 2248 | if (dfx_ctl_update_cam(bp) != DFX_K_SUCCESS) |
2250 | { | 2249 | { |
2251 | DBG_printk("%s: Could not update multicast address table!\n", dev->name); | 2250 | DBG_printk("%s: Could not update multicast address table!\n", dev->name); |