forked from enlightenment/efl
ecore_ipc: remove redundant code
Summary: buf is always NULL (already freed and set to NULL). We don't need to add NULL checking and free it. Reviewers: raster, cedric, Hermet Subscribers: seoz, cedric Differential Revision: https://phab.enlightenment.org/D2783 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
parent
f3768834c5
commit
88b2bfe435
|
@ -1506,12 +1506,11 @@ _ecore_ipc_event_server_data(void *data EINA_UNUSED, int ev_type EINA_UNUSED, vo
|
|||
}
|
||||
svr->prev.i = msg;
|
||||
offset += (s + msg.size);
|
||||
if ((svr->buf_size == offset) && ((svr->buf) || (buf)))
|
||||
if ((svr->buf_size == offset) && (svr->buf))
|
||||
{
|
||||
if (svr->buf) free(svr->buf);
|
||||
svr->buf = NULL;
|
||||
svr->buf_size = 0;
|
||||
if (buf) free(buf);
|
||||
return ECORE_CALLBACK_CANCEL;
|
||||
}
|
||||
goto redo;
|
||||
|
|
Loading…
Reference in New Issue