surface pro 4: fix compare_const_fl.cocci warnings
authorJulia Lawall <julia.lawall@lip6.fr>
Sun, 27 Dec 2015 21:10:58 +0000 (22:10 +0100)
committerDarren Hart <dvhart@linux.intel.com>
Wed, 20 Jan 2016 01:35:52 +0000 (17:35 -0800)
Move constants to the right of binary operators.

Generated by: scripts/coccinelle/misc/compare_const_fl.cocci

CC: Weng Xuetian <wengxt@gmail.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
drivers/platform/x86/surfacepro3_button.c

index b9c38f6a384587b9d2d235cdc74b88c18cc5fa6b..700e0fa0eec2ec75f7ebe094299a5312e01a8c8b 100644 (file)
@@ -111,7 +111,7 @@ static void surface_button_notify(struct acpi_device *device, u32 event)
                break;
        }
        input = button->input;
-       if (KEY_RESERVED == key_code)
+       if (key_code == KEY_RESERVED)
                return;
        if (pressed)
                pm_wakeup_event(&device->dev, 0);