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
diff --git a/udrv/ulinux/uipc.c b/udrv/ulinux/uipc.c
index ff99f0e..7c000c1 100644
--- a/udrv/ulinux/uipc.c
+++ b/udrv/ulinux/uipc.c
@@ -429,7 +429,7 @@
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)