diff options
author | Julia Lawall <julia.lawall@lip6.fr> | 2015-12-27 22:10:58 +0100 |
---|---|---|
committer | Darren Hart <dvhart@linux.intel.com> | 2016-01-19 17:35:52 -0800 |
commit | 4bef0a27e414f79e0200f33ab23adeb07965272e (patch) | |
tree | 7cbc1ff0a9f89569f1db27e367337dd5bb10ddde /drivers | |
parent | 6d5ac6e1771e30137ba1a2898885102b8bc21851 (diff) |
surface pro 4: fix compare_const_fl.cocci warnings
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/platform/x86/surfacepro3_button.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/surfacepro3_button.c b/drivers/platform/x86/surfacepro3_button.c index b9c38f6a3845..700e0fa0eec2 100644 --- a/drivers/platform/x86/surfacepro3_button.c +++ b/drivers/platform/x86/surfacepro3_button.c @@ -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); |