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

Commit 7bef58c9 authored by Kim Schulz's avatar Kim Schulz Committed by Zhihai Xu
Browse files

Fixed wrong operator in uipc.c that cause always true check

- changed from using logical OR to using logical AND

Bug: 10998096
Change-Id: Idf15dbc1c605c94094b79137a4075040fe9bcf0b
parent c5f49bfb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -429,7 +429,7 @@ static void uipc_flush_ch_locked(tUIPC_CH_ID ch_id)
        ret = poll(&pfd, 1, 1);
        BTIF_TRACE_EVENT3("uipc_flush_ch_locked polling : fd %d, rxev %x, ret %d", pfd.fd, pfd.revents, ret);

        if (pfd.revents | (POLLERR|POLLHUP))
        if (pfd.revents & (POLLERR|POLLHUP))
            return;

        if (ret <= 0)