projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc8f031
)
platform/x86/toshiba-apci.c possible bad if test?
author
Nick
<xerofoify@gmail.com>
Fri, 13 Jun 2014 03:04:15 +0000
(23:04 -0400)
committer
Matthew Garrett
<matthew.garrett@nebula.com>
Sat, 16 Aug 2014 08:23:49 +0000
(
01:23
-0700)
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
drivers/platform/x86/toshiba_acpi.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/platform/x86/toshiba_acpi.c
b/drivers/platform/x86/toshiba_acpi.c
index 76441dcbe5ffcd83abbecbedbfd91852b5301c67..dfd2243451ba4f8e27f2371d42a9e5cb1d50e94d 100644
(file)
--- a/
drivers/platform/x86/toshiba_acpi.c
+++ b/
drivers/platform/x86/toshiba_acpi.c
@@
-1238,7
+1238,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: