Remove unreachable code
authorHwankyu Jhun <h.jhun@samsung.com>
Mon, 13 Aug 2018 01:46:50 +0000 (10:46 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Mon, 13 Aug 2018 03:12:50 +0000 (12:12 +0900)
Change-Id: I094b5d37556b3157f40b9416c9de1c93c8ce01da
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/port-internal.cc

index 42b745c..7733afd 100644 (file)
@@ -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;
 }