e_output/e_test_helper: remove coverity issue - REVERSE_INULL 73/251173/1
authorDoyoun Kang <doyoun.kang@samsung.com>
Mon, 11 Jan 2021 03:55:35 +0000 (12:55 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Mon, 11 Jan 2021 03:55:35 +0000 (12:55 +0900)
Change-Id: Ibc24188d4d89c28cf94dc0574fbf128dc56f75ee

src/bin/e_output.c
src/bin/e_test_helper.c

index 18ec01d181edbccf950996b899fc08c467b4dd2a..7bb9a33abe95dc7fb6eca1151ca395a848c1aee4 100644 (file)
@@ -1553,8 +1553,7 @@ fail:
 
    tbm_surface_internal_unref(tsurface);
 
-   if (cdata)
-     E_FREE(cdata);
+   E_FREE(cdata);
 
    return EINA_FALSE;
 }
@@ -2553,7 +2552,7 @@ e_output_new(E_Comp_Screen *e_comp_screen, int index)
    return output;
 
 fail:
-   if (output) e_output_del(output);
+   e_output_del(output);
 
    return NULL;
 }
index 5e4882da0bbd71d3840240b80423b1f819363a04..4780a6b4a01b65ee80751d7c45a170e709c49b6d 100644 (file)
@@ -1465,7 +1465,7 @@ _e_test_helper_cb_effect_end(void *data EINA_UNUSED,
    win = e_pixmap_res_id_get(ec->pixmap);
    reg_win = _e_test_helper_find_win_on_reg_list(win);
 
-   if (reg_win && ec && ec->frame)
+   if (reg_win && ec->frame)
      {
         e_comp_object_render_trace_set(ec->frame, EINA_FALSE);
         reg_win->render_send = EINA_FALSE;