summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-04-26 17:33:17 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-04-26 19:07:49 +0300
commit2eeb826f3fa294f4f980e3a62da4e96095355997 (patch)
treeccf75fcbe8d776819b462ff80d5a0f65170ec613 /src
parent152147c539d8e0e920547167c462c54d744601f7 (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>
Diffstat (limited to 'src')
-rw-r--r--src/libcamera/event_dispatcher_poll.cpp2
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;