aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick <xerofoify@gmail.com>2014-06-12 23:04:15 -0400
committerMatthew Garrett <matthew.garrett@nebula.com>2014-08-16 01:23:49 -0700
commitbdc3ae7221213963f438faeaa69c8b4a2195f491 (patch)
treee13c862ffbe1e37c485bd154bdb8af3ba03561fa
parentdc8f0315d20ac6c693203db75450f45db84b1e0e (diff)
downloadlinux-bdc3ae7221213963f438faeaa69c8b4a2195f491.tar.gz
platform/x86/toshiba-apci.c possible bad if test?
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
-rw-r--r--drivers/platform/x86/toshiba_acpi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers/platform/x86/toshiba_acpi.c
index 76441dcbe5f..dfd2243451b 100644
--- 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: