projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3919349
)
rfkill: properly assign a boolean type
author
Mohammed Shafi Shajakhan
<mohammed@qca.qualcomm.com>
Fri, 16 Sep 2011 13:33:40 +0000
(19:03 +0530)
committer
John 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
patch
|
blob
|
history
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);