diff options
author | Julia Lawall <julia.lawall@lip6.fr> | 2015-12-27 16:10:58 -0500 |
---|---|---|
committer | Darren Hart <dvhart@linux.intel.com> | 2016-01-19 20:35:52 -0500 |
commit | 4bef0a27e414f79e0200f33ab23adeb07965272e (patch) | |
tree | 7cbc1ff0a9f89569f1db27e367337dd5bb10ddde /drivers/platform/x86 | |
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/platform/x86')
-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) | |||
111 | break; | 111 | break; |
112 | } | 112 | } |
113 | input = button->input; | 113 | input = button->input; |
114 | if (KEY_RESERVED == key_code) | 114 | if (key_code == KEY_RESERVED) |
115 | return; | 115 | return; |
116 | if (pressed) | 116 | if (pressed) |
117 | pm_wakeup_event(&device->dev, 0); | 117 | pm_wakeup_event(&device->dev, 0); |