From: Yeongjong Lee Date: Fri, 31 Jul 2020 07:09:40 +0000 (+0000) Subject: ecore_ipc: remove duplicated condition X-Git-Tag: accepted/tizen/unified/20200803.122206~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6a71df10fc7f23b871ff87d5ef6a7c77f0298d84;p=platform%2Fupstream%2Fefl.git ecore_ipc: remove duplicated condition The same condition is used above. Reviewed-by: Stefan Schmidt Differential Revision: https://phab.enlightenment.org/D12077 --- diff --git a/src/lib/ecore_ipc/ecore_ipc.c b/src/lib/ecore_ipc/ecore_ipc.c index 44a36cd..22f15f3 100644 --- a/src/lib/ecore_ipc/ecore_ipc.c +++ b/src/lib/ecore_ipc/ecore_ipc.c @@ -1888,7 +1888,7 @@ ecore_ipc_server_data_process(Ecore_Ipc_Server *svr, void *data, int size, Eina_ offset += (s + msg.size); if ((svr->buf_size == offset) && (svr->buf)) { - if (svr->buf) free(svr->buf); + free(svr->buf); svr->buf = NULL; svr->buf_size = 0; return ECORE_CALLBACK_CANCEL;