diff options
Diffstat (limited to 'drivers/net/qlcnic/qlcnic_hw.c')
-rw-r--r-- | drivers/net/qlcnic/qlcnic_hw.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/qlcnic/qlcnic_hw.c b/drivers/net/qlcnic/qlcnic_hw.c index 8ea7f869e293..99a4d1379d00 100644 --- a/drivers/net/qlcnic/qlcnic_hw.c +++ b/drivers/net/qlcnic/qlcnic_hw.c | |||
@@ -453,8 +453,7 @@ void qlcnic_set_multi(struct net_device *netdev) | |||
453 | } | 453 | } |
454 | 454 | ||
455 | if (!netdev_mc_empty(netdev)) { | 455 | if (!netdev_mc_empty(netdev)) { |
456 | for (mc_ptr = netdev->mc_list; mc_ptr; | 456 | netdev_for_each_mc_addr(mc_ptr, netdev) { |
457 | mc_ptr = mc_ptr->next) { | ||
458 | qlcnic_nic_add_mac(adapter, mc_ptr->dmi_addr, | 457 | qlcnic_nic_add_mac(adapter, mc_ptr->dmi_addr, |
459 | &del_list); | 458 | &del_list); |
460 | } | 459 | } |