提交 bdc3ae72 编写于 作者: N Nick 提交者: Matthew Garrett

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

Signed-off-by: NMatthew Garrett <matthew.garrett@nebula.com>
上级 dc8f0315
......@@ -1238,7 +1238,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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册