ecore_ipc: remove duplicated condition
authorYeongjong Lee <yj34.lee@samsung.com>
Fri, 31 Jul 2020 07:09:40 +0000 (07:09 +0000)
committerJongmin Lee <jm105.lee@samsung.com>
Sun, 2 Aug 2020 22:00:19 +0000 (07:00 +0900)
The same condition is used above.

Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org>
Differential Revision: https://phab.enlightenment.org/D12077

src/lib/ecore_ipc/ecore_ipc.c

index 44a36cd..22f15f3 100644 (file)
@@ -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;