diff options
author | Nick <xerofoify@gmail.com> | 2014-06-13 03:04:15 (GMT) |
---|---|---|
committer | Matthew Garrett <matthew.garrett@nebula.com> | 2014-08-16 08:23:49 (GMT) |
commit | bdc3ae7221213963f438faeaa69c8b4a2195f491 (patch) | |
tree | e13c862ffbe1e37c485bd154bdb8af3ba03561fa /drivers/platform | |
parent | dc8f0315d20ac6c693203db75450f45db84b1e0e (diff) | |
download | linux-bdc3ae7221213963f438faeaa69c8b4a2195f491.tar.xz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers/platform/x86/toshiba_acpi.c index 76441dc..dfd2243 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: |