projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1ca14a
)
atm: use for_each_set_bit()
author
Akinobu Mita
<
[email protected]
>
Thu, 11 Mar 2010 12:07:50 +0000
(12:07 +0000)
committer
David S. Miller
<
[email protected]
>
Mon, 15 Mar 2010 23:00:47 +0000
(16:00 -0700)
Replace open-coded loop with for_each_set_bit().
Signed-off-by: Akinobu Mita <
[email protected]
>
Cc: Chas Williams <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/atm/lanai.c
patch
|
blob
|
history
diff --git
a/drivers/atm/lanai.c
b/drivers/atm/lanai.c
index 7fe7c324e7ef5213fa5cd616024ed8d58a84f508..23d95054705be2f2671555a144d889cf8aaa2e02 100644
(file)
--- a/
drivers/atm/lanai.c
+++ b/
drivers/atm/lanai.c
@@
-306,11
+306,10
@@
static void vci_bitfield_iterate(struct lanai_dev *lanai,
const unsigned long *lp,
void (*func)(struct lanai_dev *,vci_t vci))
{
- vci_t vci = find_first_bit(lp, NUM_VCI);
- while (vci < NUM_VCI) {
+ vci_t vci;
+
+ for_each_set_bit(vci, lp, NUM_VCI)
func(lanai, vci);
- vci = find_next_bit(lp, NUM_VCI, vci + 1);
- }
}
/* -------------------- BUFFER UTILITIES: */