diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2007-09-06 03:20:38 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2007-09-06 03:20:38 +0000 |
commit | db66c9850fba4892b0c676e2d4d94171dcbae344 (patch) | |
tree | 5237f8981374b66e5b81d5a5fc0c0c20a72ac096 /audio | |
parent | e4b3ec84ce3680ca33ae88b76e1ce138756c0427 (diff) |
Fix poll revents check
Diffstat (limited to 'audio')
-rw-r--r-- | audio/pcm_bluetooth.c | 4 |
1 files changed, 1 insertions, 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; } |