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:
Thiep Ha 2015-07-28 01:08:11 +02:00 committed by Cedric BAIL
parent f3768834c5
commit 88b2bfe435
1 changed files with 1 additions and 2 deletions

View File

@ -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;