e_input_evdev: remove warning - reduce the number of conditional operators 89/163089/2
authorSung-Jin Park <sj76.park@samsung.com>
Thu, 7 Dec 2017 06:52:55 +0000 (15:52 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Thu, 7 Dec 2017 06:54:03 +0000 (06:54 +0000)
Change-Id: I7cee5b833e6800d1c08807287a8d21db6435f3ba
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
src/bin/e_input_evdev.c

index 26bb651..f24c9f3 100644 (file)
@@ -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;