From: Julia Lawall Date: Sun, 27 Dec 2015 21:10:58 +0000 (+0100) Subject: surface pro 4: fix compare_const_fl.cocci warnings X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=4bef0a27e414f79e0200f33ab23adeb07965272e;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Fengguang Wu Signed-off-by: Julia Lawall Signed-off-by: Darren Hart --- 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);