From db66c9850fba4892b0c676e2d4d94171dcbae344 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 6 Sep 2007 03:20:38 +0000 Subject: Fix poll revents check --- audio/pcm_bluetooth.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/audio/pcm_bluetooth.c b/audio/pcm_bluetooth.c index 9e5058c0..6338bc25 100644 --- a/audio/pcm_bluetooth.c +++ b/audio/pcm_bluetooth.c @@ -221,9 +221,7 @@ iter_sleep: } else if (ret > 0) { ret = (fds[0].revents) ? 0 : 1; SNDERR("poll fd %d revents %d", ret, fds[ret].revents); - if (fds[ret].revents & POLLERR || - fds[ret].revents & POLLHUP || - fds[ret].revents & POLLNVAL) + if (fds[ret].revents & (POLLERR | POLLHUP | POLLNVAL)) break; } -- cgit