summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick <xerofoify@gmail.com>2014-06-13 05:04:15 +0200
committerMatthew Garrett <matthew.garrett@nebula.com>2014-08-16 10:23:49 +0200
commitbdc3ae7221213963f438faeaa69c8b4a2195f491 (patch)
treee13c862ffbe1e37c485bd154bdb8af3ba03561fa
parentsony-laptop: fix doesn't work lid resume settings on Vaio Pro (diff)
downloadlinux-bdc3ae7221213963f438faeaa69c8b4a2195f491.tar.xz
linux-bdc3ae7221213963f438faeaa69c8b4a2195f491.zip
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 76441dcbe5ff..dfd2243451ba 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: