aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
authorMatthew Garrett <matthew.garrett@nebula.com>2014-08-20 11:18:18 -0400
committerMatthew Garrett <matthew.garrett@nebula.com>2014-08-20 11:18:18 -0400
commit8039aabb6c9f802bca04cc77ca210060a5b53916 (patch)
treecff5766be2ebf3ed3f75566922a516ab220b144d /drivers/platform
parent186e4e89a0922d75fba476f15b723e541cc34bea (diff)
Revert "platform/x86/toshiba-apci.c possible bad if test?"
This reverts commit bdc3ae7221213963f438faeaa69c8b4a2195f491. 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 e4da61bcbf8b..b062d3d7b373 100644
--- a/drivers/platform/x86/toshiba_acpi.c
+++ b/drivers/platform/x86/toshiba_acpi.c
@@ -1258,7 +1258,7 @@ static ssize_t toshiba_kbd_bl_mode_store(struct device *dev,
1258 int mode = -1; 1258 int mode = -1;
1259 int time = -1; 1259 int time = -1;
1260 1260
1261 if (sscanf(buf, "%i", &mode) != 1 || (mode != 2 || mode != 1)) 1261 if (sscanf(buf, "%i", &mode) != 1 && (mode != 2 || mode != 1))
1262 return -EINVAL; 1262 return -EINVAL;
1263 1263
1264 /* Set the Keyboard Backlight Mode where: 1264 /* Set the Keyboard Backlight Mode where: