OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.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
|
history
diff --git
a/drivers/platform/x86/toshiba_acpi.c
b/drivers/platform/x86/toshiba_acpi.c
index
76441dc
..
dfd2243
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: