diff options
Diffstat (limited to 'drivers/net/b44.c')
-rw-r--r-- | drivers/net/b44.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/net/b44.c b/drivers/net/b44.c index bcb6a029a0a8..332c60356285 100644 --- a/drivers/net/b44.c +++ b/drivers/net/b44.c | |||
@@ -1684,9 +1684,11 @@ static int __b44_load_mcast(struct b44 *bp, struct net_device *dev) | |||
1684 | int i, num_ents; | 1684 | int i, num_ents; |
1685 | 1685 | ||
1686 | num_ents = min_t(int, netdev_mc_count(dev), B44_MCAST_TABLE_SIZE); | 1686 | num_ents = min_t(int, netdev_mc_count(dev), B44_MCAST_TABLE_SIZE); |
1687 | mclist = dev->mc_list; | 1687 | i = 0; |
1688 | for (i = 0; mclist && i < num_ents; i++, mclist = mclist->next) { | 1688 | netdev_for_each_mc_addr(mclist, dev) { |
1689 | __b44_cam_write(bp, mclist->dmi_addr, i + 1); | 1689 | if (i == num_ents) |
1690 | break; | ||
1691 | __b44_cam_write(bp, mclist->dmi_addr, i++ + 1); | ||
1690 | } | 1692 | } |
1691 | return i+1; | 1693 | return i+1; |
1692 | } | 1694 | } |