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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user