2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-05 03:44:03 +08:00

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

This reverts commit bdc3ae7221.

Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
This commit is contained in:
Matthew Garrett 2014-08-20 08:18:18 -07:00
parent 186e4e89a0
commit 8039aabb6c

View File

@ -1258,7 +1258,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: