rfkill: properly assign a boolean type
authorMohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
Fri, 16 Sep 2011 13:33:40 +0000 (19:03 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 19 Sep 2011 20:10:14 +0000 (16:10 -0400)
Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/rfkill/core.c

index be90640..5be1957 100644 (file)
@@ -235,7 +235,7 @@ static bool __rfkill_set_hw_state(struct rfkill *rfkill,
        else
                rfkill->state &= ~RFKILL_BLOCK_HW;
        *change = prev != blocked;
-       any = rfkill->state & RFKILL_BLOCK_ANY;
+       any = !!(rfkill->state & RFKILL_BLOCK_ANY);
        spin_unlock_irqrestore(&rfkill->lock, flags);
 
        rfkill_led_trigger_event(rfkill);