aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sb1250-mac.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/sb1250-mac.c')
-rw-r--r--drivers/net/sb1250-mac.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/sb1250-mac.c b/drivers/net/sb1250-mac.c
index 564d4d7f855b..9944e5d662c0 100644
--- a/drivers/net/sb1250-mac.c
+++ b/drivers/net/sb1250-mac.c
@@ -2161,13 +2161,13 @@ static void sbmac_setmulti(struct sbmac_softc *sc)
2161 * XXX if the table overflows */ 2161 * XXX if the table overflows */
2162 2162
2163 idx = 1; /* skip station address */ 2163 idx = 1; /* skip station address */
2164 mclist = dev->mc_list; 2164 netdev_for_each_mc_addr(mclist, dev) {
2165 while (mclist && (idx < MAC_ADDR_COUNT)) { 2165 if (idx == MAC_ADDR_COUNT)
2166 break;
2166 reg = sbmac_addr2reg(mclist->dmi_addr); 2167 reg = sbmac_addr2reg(mclist->dmi_addr);
2167 port = sc->sbm_base + R_MAC_ADDR_BASE+(idx * sizeof(uint64_t)); 2168 port = sc->sbm_base + R_MAC_ADDR_BASE+(idx * sizeof(uint64_t));
2168 __raw_writeq(reg, port); 2169 __raw_writeq(reg, port);
2169 idx++; 2170 idx++;
2170 mclist = mclist->next;
2171 } 2171 }
2172 2172
2173 /* 2173 /*