diff options
author | Julia Lawall <julia.lawall@lip6.fr> | 2015-12-27 21:10:58 (GMT) |
---|---|---|
committer | Darren Hart <dvhart@linux.intel.com> | 2016-01-20 01:35:52 (GMT) |
commit | 4bef0a27e414f79e0200f33ab23adeb07965272e (patch) | |
tree | 7cbc1ff0a9f89569f1db27e367337dd5bb10ddde /drivers/platform | |
parent | 6d5ac6e1771e30137ba1a2898885102b8bc21851 (diff) | |
download | linux-4bef0a27e414f79e0200f33ab23adeb07965272e.tar.xz |
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')
-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 b9c38f6..700e0fa 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); |