Commit 8039aabb authored by Matthew Garrett's avatar Matthew Garrett

Revert "platform/x86/toshiba-apci.c possible bad if test?"

This reverts commit bdc3ae72.
Signed-off-by: default avatarMatthew Garrett <matthew.garrett@nebula.com>
parent 186e4e89
...@@ -1258,7 +1258,7 @@ static ssize_t toshiba_kbd_bl_mode_store(struct device *dev, ...@@ -1258,7 +1258,7 @@ static ssize_t toshiba_kbd_bl_mode_store(struct device *dev,
int mode = -1; int mode = -1;
int time = -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; return -EINVAL;
/* Set the Keyboard Backlight Mode where: /* Set the Keyboard Backlight Mode where:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment