Parentheses are needed due to operator precedence (although the previous code happened to work because POLLIN has the value 1). Fixes: 91f986ec9969 ("linux-v4l2: Check udev fd events")
@@ -140,7 +140,7 @@ static void *udev_event_thread(void *vptr)
if (poll(fds, 2, 1000) <= 0)
continue;
- if (!fds[0].revents & POLLIN)
+ if (!(fds[0].revents & POLLIN))
dev = udev_monitor_receive_device(mon);