From: Akinobu Mita Date: Fri, 27 Aug 2010 19:08:26 +0000 (+0000) Subject: phonet: use for_each_set_bit X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6a499b242f7d1ebf13f5bc386e08e80603f79e2a;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git phonet: use for_each_set_bit Replace open-coded loop with for_each_set_bit(). Signed-off-by: Akinobu Mita Cc: "David S. Miller" Cc: netdev@vger.kernel.org Signed-off-by: David S. Miller --- diff --git a/net/phonet/pn_dev.c b/net/phonet/pn_dev.c index b18e48fae975..d0a429459370 100644 --- 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); }