From: Hwankyu Jhun Date: Mon, 13 Aug 2018 01:46:50 +0000 (+0900) Subject: Remove unreachable code X-Git-Tag: submit/tizen/20180813.044440~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=796600d5198bb4f9d3ad106456dd28df09ba3698;p=platform%2Fcore%2Fappfw%2Frpc-port.git Remove unreachable code Change-Id: I094b5d37556b3157f40b9416c9de1c93c8ce01da Signed-off-by: Hwankyu Jhun --- diff --git a/src/port-internal.cc b/src/port-internal.cc index 42b745c..7733afd 100644 --- a/src/port-internal.cc +++ b/src/port-internal.cc @@ -98,11 +98,6 @@ int Port::Read(void* buf, unsigned int size) { TRY_SLEEP_TIME.tv_nsec = MIN_SLEEP * BASE_SLEEP; } - if (left != 0) { - LOGE("error fd %d: max_timeout %d", fd_, max_timeout); - return RPC_PORT_ERROR_IO_ERROR; - } - return RPC_PORT_ERROR_NONE; } @@ -165,11 +160,6 @@ int Port::Write(const void* buf, unsigned int size) { TRY_SLEEP_TIME.tv_nsec = MIN_SLEEP * BASE_SLEEP; } - if (left != 0) { - LOGE("error fd %d: max_timeout %d", fd_, max_timeout); - return RPC_PORT_ERROR_IO_ERROR; - } - return RPC_PORT_ERROR_NONE; }