mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 07:38:10 +00:00
platform/x86/toshiba-apci.c possible bad if test?
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
This commit is contained in:
parent
dc8f0315d2
commit
bdc3ae7221
1 changed files with 1 additions and 1 deletions
|
@ -1238,7 +1238,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:
|
||||||
|
|
Loading…
Reference in a new issue