Message ID | alpine.DEB.2.02.1512272208490.2085@localhost6.localdomain6 (mailing list archive) |
---|---|
State | Accepted, archived |
Headers | show |
On Sun, Dec 27, 2015 at 10:10:58PM +0100, Julia Lawall wrote: > 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> Queued, thank you.
--- a/drivers/platform/x86/surfacepro_button.c +++ b/drivers/platform/x86/surfacepro_button.c @@ -111,7 +111,7 @@ static void surface_button_notify(struct break; } input = button->input; - if (KEY_RESERVED == key_code) + if (key_code == KEY_RESERVED) return; if (pressed) pm_wakeup_event(&device->dev, 0);