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>
This commit is contained in:
Laurent Pinchart 2019-04-26 17:33:17 +03:00
parent 152147c539
commit 2eeb826f3f

View file

@ -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;