From: Mohammed Shafi Shajakhan Date: Fri, 16 Sep 2011 13:33:40 +0000 (+0530) Subject: rfkill: properly assign a boolean type X-Git-Tag: MMI-PSA29.97-13-9~18194^2~183^2~67 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6be19ccd698abf9c4f0b7bba5a704f94e7ccdf54;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.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 be90640a2774..5be19575c340 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);