From 035aef825aaacbd22f26cfbdac546653ece4ce58 Mon Sep 17 00:00:00 2001 From: Junkyeong Kim Date: Mon, 2 Nov 2020 20:32:03 +0900 Subject: [PATCH] e_output: erase unnecessary null checking condition Change-Id: I286383717255dba0e81c3ec157cb3dae2a489ab8 Signed-off-by: Junkyeong Kim --- src/bin/e_output.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/bin/e_output.c b/src/bin/e_output.c index 637c2870a1..b22033b1d1 100644 --- a/src/bin/e_output.c +++ b/src/bin/e_output.c @@ -1387,8 +1387,7 @@ _e_output_tdm_capture(E_Output *output, tdm_capture *tcapture, fail: tbm_surface_internal_unref(tsurface); - if (cdata) - E_FREE(cdata); + E_FREE(cdata); return EINA_FALSE; } @@ -1540,8 +1539,7 @@ fail: tbm_surface_internal_unref(tsurface); - if (cdata) - E_FREE(cdata); + E_FREE(cdata); return EINA_FALSE; } @@ -2540,7 +2538,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; } -- 2.34.1