diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-04-26 17:33:17 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-04-26 19:07:49 +0300 |
commit | 2eeb826f3fa294f4f980e3a62da4e96095355997 (patch) | |
tree | ccf75fcbe8d776819b462ff80d5a0f65170ec613 | |
parent | 152147c539d8e0e920547167c462c54d744601f7 (diff) |
libcamera: event_dispatcher_poll: Fix bitwise test
Add missing parentheses to fix a bitwise test.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
-rw-r--r-- | src/libcamera/event_dispatcher_poll.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcamera/event_dispatcher_poll.cpp b/src/libcamera/event_dispatcher_poll.cpp index 130b5e20..1f0f352a 100644 --- a/src/libcamera/event_dispatcher_poll.cpp +++ b/src/libcamera/event_dispatcher_poll.cpp @@ -210,7 +210,7 @@ int EventDispatcherPoll::poll(std::vector<struct pollfd> *pollfds) void EventDispatcherPoll::processInterrupt(const struct pollfd &pfd) { - if (!pfd.revents & POLLIN) + if (!(pfd.revents & POLLIN)) return; uint64_t value; |