summaryrefslogtreecommitdiff
path: root/drivers/net/ppp
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2012-04-03 02:47:16 +0400
committerDavid S. Miller <davem@davemloft.net>2012-04-04 02:54:31 +0400
commit99427747fbd0b29f2bebc74c697acfd435fecc3f (patch)
tree2520d4e743aad5f6a2d813ace48cfbac86cd7be5 /drivers/net/ppp
parentffe06c17afbbbd4d73cdc339419be232847d667a (diff)
downloadlinux-99427747fbd0b29f2bebc74c697acfd435fecc3f.tar.xz
ppp: use for_each_set_bit_from
Use for_each_set_bit_from to iterate over all the set bit in a memory region. Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Cc: Dmitry Kozlov <xeb@mail.ru> Cc: netdev@vger.kernel.org Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ppp')
-rw-r--r--drivers/net/ppp/pptp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ppp/pptp.c b/drivers/net/ppp/pptp.c
index 885dbdd9c39e..72b50f57e7b2 100644
--- a/drivers/net/ppp/pptp.c
+++ b/drivers/net/ppp/pptp.c
@@ -116,8 +116,8 @@ static int lookup_chan_dst(u16 call_id, __be32 d_addr)
int i;
rcu_read_lock();
- for (i = find_next_bit(callid_bitmap, MAX_CALLID, 1); i < MAX_CALLID;
- i = find_next_bit(callid_bitmap, MAX_CALLID, i + 1)) {
+ i = 1;
+ for_each_set_bit_from(i, callid_bitmap, MAX_CALLID) {
sock = rcu_dereference(callid_sock[i]);
if (!sock)
continue;