mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
rfkill: properly assign a boolean type
Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
3919349891
commit
6be19ccd69
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user