git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
phonet: use for_each_set_bit()
[safe/jmp/linux-2.6]
/
net
/
phonet
/
pn_dev.c
diff --git
a/net/phonet/pn_dev.c
b/net/phonet/pn_dev.c
index
c597cc5
..
5c6ae0c
100644
(file)
--- a/
net/phonet/pn_dev.c
+++ b/
net/phonet/pn_dev.c
@@
-107,8
+107,7
@@
static void phonet_device_destroy(struct net_device *dev)
if (pnd) {
u8 addr;
- for (addr = find_first_bit(pnd->addrs, 64); addr < 64;
- addr = find_next_bit(pnd->addrs, 64, 1+addr))
+ for_each_set_bit(addr, pnd->addrs, 64)
phonet_address_notify(RTM_DELADDR, dev, addr);
kfree(pnd);
}