瀏覽代碼

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

This reverts commit bdc3ae7221213963f438faeaa69c8b4a2195f491.

Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
Matthew Garrett 11 年之前
父節點
當前提交
8039aabb6c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/platform/x86/toshiba_acpi.c

+ 1 - 1
drivers/platform/x86/toshiba_acpi.c

@@ -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: