From patchwork Fri Apr 26 15:01:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 1108 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 0322D60E9C for ; Fri, 26 Apr 2019 17:02:10 +0200 (CEST) Received: from pendragon.station (net-37-182-44-227.cust.vodafonedsl.it [37.182.44.227]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 9972A54C for ; Fri, 26 Apr 2019 17:02:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1556290929; bh=heOyTImYa5Vv7LOX2E+/yZQBGwhUuoN0exFMit7GV2A=; h=From:To:Subject:Date:In-Reply-To:References:From; b=CfRLVq8AxOdBqPBJjwDCpgqdU5pbIDEAAlyVd1H9ryKeYjx/EpgjTFwo60wSwwoEf 91h/MXuBTb3UTJ6uHg4ORU2jgL8jIfRSG+jwr7w5x5/dLp5dsefU41cRdCXidSixfS 3k2eb0opHSYru/pWge9p3K9/qNJAGNgOP6e9kxGQ= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Fri, 26 Apr 2019 18:01:49 +0300 Message-Id: <20190426150155.18652-3-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190426150155.18652-1-laurent.pinchart@ideasonboard.com> References: <20190426150155.18652-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 2/8] libcamera: event_dispatcher_poll: Fix bitwise test X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Apr 2019 15:02:10 -0000 Add missing parentheses to fix a bitwise test. Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham --- 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 *pollfds) void EventDispatcherPoll::processInterrupt(const struct pollfd &pfd) { - if (!pfd.revents & POLLIN) + if (!(pfd.revents & POLLIN)) return; uint64_t value;