[libcamera-devel] [PATCH 2/8] libcamera: event_dispatcher_poll: Fix bitwise test
Laurent Pinchart
laurent.pinchart at ideasonboard.com
Fri Apr 26 17:01:49 CEST 2019
Add missing parentheses to fix a bitwise test.
Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
---
src/libcamera/event_dispatcher_poll.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libcamera/event_dispatcher_poll.cpp b/src/libcamera/event_dispatcher_poll.cpp
index 130b5e20ea09..1f0f352a8e0a 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;
--
Regards,
Laurent Pinchart
More information about the libcamera-devel
mailing list