aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/atm
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/atm')
-rw-r--r--drivers/atm/lanai.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/atm/lanai.c b/drivers/atm/lanai.c
index 7fe7c324e7ef..23d95054705b 100644
--- a/drivers/atm/lanai.c
+++ b/drivers/atm/lanai.c
@@ -306,11 +306,10 @@ static void vci_bitfield_iterate(struct lanai_dev *lanai,
306 const unsigned long *lp, 306 const unsigned long *lp,
307 void (*func)(struct lanai_dev *,vci_t vci)) 307 void (*func)(struct lanai_dev *,vci_t vci))
308{ 308{
309 vci_t vci = find_first_bit(lp, NUM_VCI); 309 vci_t vci;
310 while (vci < NUM_VCI) { 310
311 for_each_set_bit(vci, lp, NUM_VCI)
311 func(lanai, vci); 312 func(lanai, vci);
312 vci = find_next_bit(lp, NUM_VCI, vci + 1);
313 }
314} 313}
315 314
316/* -------------------- BUFFER UTILITIES: */ 315/* -------------------- BUFFER UTILITIES: */