Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ea9fc3eb authored by En-Shuo Hsu's avatar En-Shuo Hsu
Browse files

Fix the return value of UIPC_Send

UIPC_Send currently always returns false. This doesn't look right and
also conflicts the description in the header.

Bug: 235901463
Tag: #floss
Test: Build
Change-Id: Ib37c3bb15729079e77aeee25a15fcae3e9f46866
parent 2d4560b7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -588,9 +588,10 @@ bool UIPC_Send(tUIPC_STATE& uipc, tUIPC_CH_ID ch_id,
  OSI_NO_INTR(ret = write(uipc.ch[ch_id].fd, p_buf, msglen));
  if (ret < 0) {
    LOG_ERROR("failed to write (%s)", strerror(errno));
    return false;
  }

  return false;
  return true;
}

/*******************************************************************************