Skip to content

Commit

Permalink
Revert "platform/x86/toshiba-apci.c possible bad if test?"
Browse files Browse the repository at this point in the history
This reverts commit bdc3ae7.

Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
  • Loading branch information
Matthew Garrett committed Aug 20, 2014
1 parent 186e4e8 commit 8039aab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/platform/x86/toshiba_acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8039aab

Please sign in to comment.