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:
e27cd4f
)
phonet: use for_each_set_bit
author
Akinobu Mita
<
[email protected]
>
Fri, 27 Aug 2010 19:08:26 +0000
(19:08 +0000)
committer
David S. Miller
<
[email protected]
>
Sat, 28 Aug 2010 22:37:04 +0000
(15:37 -0700)
Replace open-coded loop with for_each_set_bit().
Signed-off-by: Akinobu Mita <
[email protected]
>
Cc: "David S. Miller" <
[email protected]
>
Cc:
[email protected]
Signed-off-by: David S. Miller <
[email protected]
>
net/phonet/pn_dev.c
patch
|
blob
|
history
diff --git
a/net/phonet/pn_dev.c
b/net/phonet/pn_dev.c
index b18e48fae9759cf20d735031bc1f18a7e8857a11..d0a429459370ad822dc90f0d00e9888ca87ee7ea 100644
(file)
--- a/
net/phonet/pn_dev.c
+++ b/
net/phonet/pn_dev.c
@@
-292,8
+292,7
@@
static void phonet_route_autodel(struct net_device *dev)
if (bitmap_empty(deleted, 64))
return; /* short-circuit RCU */
synchronize_rcu();
- for (i = find_first_bit(deleted, 64); i < 64;
- i = find_next_bit(deleted, 64, i + 1)) {
+ for_each_set_bit(i, deleted, 64) {
rtm_phonet_notify(RTM_DELROUTE, dev, i);
dev_put(dev);
}