From: Mohammed Shafi Shajakhan Date: Fri, 16 Sep 2011 13:33:40 +0000 (+0530) Subject: rfkill: properly assign a boolean type X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6be19ccd698abf9c4f0b7bba5a704f94e7ccdf54;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git rfkill: properly assign a boolean type Signed-off-by: Mohammed Shafi Shajakhan Signed-off-by: John W. Linville --- diff --git a/net/rfkill/core.c b/net/rfkill/core.c index be90640a277..5be19575c34 100644 --- a/net/rfkill/core.c +++ b/net/rfkill/core.c @@ -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);