summaryrefslogtreecommitdiffstats
path: root/udrv
diff options
context:
space:
mode:
authorKim Schulz <k.schulz@samsung.com>2013-09-30 09:23:23 +0200
committerZhihai Xu <zhihaixu@google.com>2013-12-03 15:08:25 -0800
commitf2708dc31cb6c9cd527923c506a8259a9ce77614 (patch)
tree5d54566547f75827b8bb39df10c486bd01d9e701 /udrv
parent5d3f77aab397e4496374708db21e71255992c46e (diff)
downloadandroid_system_bt-f2708dc31cb6c9cd527923c506a8259a9ce77614.tar.gz
android_system_bt-f2708dc31cb6c9cd527923c506a8259a9ce77614.tar.bz2
android_system_bt-f2708dc31cb6c9cd527923c506a8259a9ce77614.zip
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
Diffstat (limited to 'udrv')
-rw-r--r--udrv/ulinux/uipc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udrv/ulinux/uipc.c b/udrv/ulinux/uipc.c
index ff99f0eb5..7c000c1bb 100644
--- a/udrv/ulinux/uipc.c
+++ b/udrv/ulinux/uipc.c
@@ -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)