lkml.org 
[lkml]   [2010]   [Feb]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 9/9] hpet: Use for_each_set_bit
    Date
    v2: rename for_each_bit to for_each_set_bit

    Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
    ---
    drivers/char/hpet.c | 4 +---
    1 files changed, 1 insertions(+), 3 deletions(-)

    diff --git a/drivers/char/hpet.c b/drivers/char/hpet.c
    index e481c59..9c5eea3 100644
    --- a/drivers/char/hpet.c
    +++ b/drivers/char/hpet.c
    @@ -215,9 +215,7 @@ static void hpet_timer_set_irq(struct hpet_dev *devp)
    else
    v &= ~0xffff;

    - for (irq = find_first_bit(&v, HPET_MAX_IRQ); irq < HPET_MAX_IRQ;
    - irq = find_next_bit(&v, HPET_MAX_IRQ, 1 + irq)) {
    -
    + for_each_set_bit(irq, &v, HPET_MAX_IRQ) {
    if (irq >= nr_irqs) {
    irq = HPET_MAX_IRQ;
    break;
    --
    1.6.0.6


    \
     
     \ /
      Last update: 2010-02-01 16:17    [W:0.025 / U:0.224 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site