summaryrefslogtreecommitdiffstats
path: root/drivers/platform
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 /drivers/platform
parentdc8f0315d20ac6c693203db75450f45db84b1e0e (diff)
downloadtalos-obmc-linux-bdc3ae7221213963f438faeaa69c8b4a2195f491.tar.gz
talos-obmc-linux-bdc3ae7221213963f438faeaa69c8b4a2195f491.zip
platform/x86/toshiba-apci.c possible bad if test?
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
Diffstat (limited to 'drivers/platform')
-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:
OpenPOWER on IntegriCloud