From: Sung-Jin Park Date: Thu, 7 Dec 2017 06:52:55 +0000 (+0900) Subject: e_input_evdev: remove warning - reduce the number of conditional operators X-Git-Tag: accepted/tizen/unified/20171212.064747~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F89%2F163089%2F2;p=platform%2Fupstream%2Fenlightenment.git e_input_evdev: remove warning - reduce the number of conditional operators Change-Id: I7cee5b833e6800d1c08807287a8d21db6435f3ba Signed-off-by: Sung-Jin Park --- diff --git a/src/bin/e_input_evdev.c b/src/bin/e_input_evdev.c index 26bb651..f24c9f3 100644 --- a/src/bin/e_input_evdev.c +++ b/src/bin/e_input_evdev.c @@ -224,15 +224,15 @@ _device_modifiers_update_device(E_Input_Evdev *edev, E_Input_Evdev *from) static void _device_modifiers_update(E_Input_Evdev *edev) { + Eina_List *l; + E_Input_Evdev *ed; + edev->xkb.modifiers = 0; if (edev->caps & E_INPUT_SEAT_KEYBOARD) _device_modifiers_update_device(edev, edev); else { - Eina_List *l; - E_Input_Evdev *ed; - EINA_LIST_FOREACH(edev->seat->devices, l, ed) { if (!(ed->caps & E_INPUT_SEAT_KEYBOARD)) continue;