fix coverity issue - unused value 90/311390/1 accepted/tizen_unified accepted/tizen_unified_x tizen accepted/tizen/unified/20240521.104305 accepted/tizen/unified/x/20240522.020334
authorDoyoun Kang <doyoun.kang@samsung.com>
Mon, 20 May 2024 10:23:27 +0000 (19:23 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Mon, 20 May 2024 10:23:27 +0000 (19:23 +0900)
Change-Id: I5a3b5cacaa993b86f5381a7e8ad340cf0967c2ab

src/efl_util.c

index 4821b39..14a4b7e 100644 (file)
@@ -1472,8 +1472,7 @@ efl_util_input_generate_touch(efl_util_inputgen_h inputgen_h, int idx,
    EINA_SAFETY_ON_FALSE_RETURN_VAL(inputgen_h->init_type & EFL_UTIL_INPUT_DEVTYPE_TOUCHSCREEN, EFL_UTIL_ERROR_NO_SUCH_DEVICE);
 
    if (_eflutil.wl.devmgr.request_touch_count != 0 &&
-       _eflutil.wl.devmgr.max_touch_count != _eflutil.wl.devmgr.request_touch_count &&
-       (ret_dispatch != -1))
+       _eflutil.wl.devmgr.max_touch_count != _eflutil.wl.devmgr.request_touch_count)
      ret_dispatch = wl_display_dispatch_queue(_eflutil.wl.dpy, _eflutil.wl.queue);
 
    if (idx >= _eflutil.wl.devmgr.max_touch_count)
@@ -1498,7 +1497,6 @@ efl_util_input_generate_touch(efl_util_inputgen_h inputgen_h, int idx,
 
    tizen_input_device_manager_generate_touch(_eflutil.wl.devmgr.devicemgr, type, x, y, idx);
 
-   ret_dispatch = 0;
    while ((_eflutil.wl.devmgr.request_notified == -1) && (ret_dispatch != -1))
      ret_dispatch = wl_display_dispatch_queue(_eflutil.wl.dpy, _eflutil.wl.queue);