git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
rfkill: properly assign a boolean type
[pandora-kernel.git]
/
net
/
rfkill
/
core.c
diff --git
a/net/rfkill/core.c
b/net/rfkill/core.c
index
be90640
..
5be1957
100644
(file)
--- 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);