projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
186e4e8
)
Revert "platform/x86/toshiba-apci.c possible bad if test?"
author
Matthew Garrett
<
[email protected]
>
Wed, 20 Aug 2014 15:18:18 +0000
(08:18 -0700)
committer
Matthew Garrett
<
[email protected]
>
Wed, 20 Aug 2014 15:18:18 +0000
(08:18 -0700)
This reverts commit
bdc3ae7221213963f438faeaa69c8b4a2195f491
.
Signed-off-by: Matthew Garrett <
[email protected]
>
drivers/platform/x86/toshiba_acpi.c
patch
|
blob
|
history
diff --git
a/drivers/platform/x86/toshiba_acpi.c
b/drivers/platform/x86/toshiba_acpi.c
index e4da61bcbf8bb138a692325706cc05dc94e2beca..b062d3d7b37304e9e724fd869419febfae522c19 100644
(file)
--- a/
drivers/platform/x86/toshiba_acpi.c
+++ b/
drivers/platform/x86/toshiba_acpi.c
@@
-1258,7
+1258,7
@@
static ssize_t toshiba_kbd_bl_mode_store(struct device *dev,
int mode = -1;
int time = -1;
- if (sscanf(buf, "%i", &mode) != 1
||
(mode != 2 || mode != 1))
+ if (sscanf(buf, "%i", &mode) != 1
&&
(mode != 2 || mode != 1))
return -EINVAL;
/* Set the Keyboard Backlight Mode where: