From patchwork Mon Sep 18 15:43:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Steven Joruk X-Patchwork-Id: 9957035 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 37D246039A for ; Mon, 18 Sep 2017 15:58:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 27FCA28D70 for ; Mon, 18 Sep 2017 15:58:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1C54028D73; Mon, 18 Sep 2017 15:58:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8BF7328D70 for ; Mon, 18 Sep 2017 15:58:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752607AbdIRP6f (ORCPT ); Mon, 18 Sep 2017 11:58:35 -0400 Received: from relay5.mymailcheap.com ([159.100.241.64]:57196 "EHLO relay5.mymailcheap.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752364AbdIRP6f (ORCPT ); Mon, 18 Sep 2017 11:58:35 -0400 X-Greylist: delayed 582 seconds by postgrey-1.27 at vger.kernel.org; Mon, 18 Sep 2017 11:58:34 EDT Received: from relay4.mymailcheap.com (relay4.mymailcheap.com [137.74.80.156]) by relay5.mymailcheap.com (Postfix) with ESMTPS id AEA9120091 for ; Mon, 18 Sep 2017 15:48:50 +0000 (UTC) Received: from filter1.mymailcheap.com (filter1.mymailcheap.com [149.56.130.247]) by relay4.mymailcheap.com (Postfix) with ESMTPS id 2D6053EBFE; Mon, 18 Sep 2017 17:48:48 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by filter1.mymailcheap.com (Postfix) with ESMTP id 562642A4C9; Mon, 18 Sep 2017 11:48:47 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mymailcheap.com; s=default; t=1505749727; bh=emFUR4dKnhXyHpPqI6pYqVLkxInBjPlgzteuyo7c7/0=; h=From:To:Cc:Subject:Date:From; b=0RGjXHjAWeX3QvWx0z98njaFhQctsA+9UiShgSA0DAlsBUHvISpWR0POS9LyDw5wD f6Q68MpozCjsAMHFlZRVIq2F06aaaZisH9k/o2Tb7o82focpTdN1ESoWBo17pgkCbX BScoqZO1qkQikLusHUdxN0rHIkfPSwp2njtQMELU= X-Virus-Scanned: Debian amavisd-new at filter1.mymailcheap.com Received: from filter1.mymailcheap.com ([127.0.0.1]) by localhost (filter1.mymailcheap.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kPQ5DfKiWS3l; Mon, 18 Sep 2017 11:48:46 -0400 (EDT) Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=92.222.71.234; helo=p100.mymailcheap.com; envelope-from=steven@joruk.com; receiver=michael.hennerich@analog.com Received: from p100.mymailcheap.com (p100.mymailcheap.com [92.222.71.234]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by filter1.mymailcheap.com (Postfix) with ESMTPS; Mon, 18 Sep 2017 11:48:46 -0400 (EDT) Received: from steven-desktop.BELTECH.local (unknown [31.221.95.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by p100.mymailcheap.com (Postfix) with ESMTPSA id 078235FA79; Mon, 18 Sep 2017 17:48:41 +0200 (CEST) From: Steven Joruk To: michael.hennerich@analog.com, dmitry.torokhov@gmail.com Cc: linux-input@vger.kernel.org, Steven Joruk Subject: [PATCH] Input: adxl34x - avoid int-in-bool-context warning Date: Mon, 18 Sep 2017 16:43:57 +0100 Message-Id: <20170918154357.2949-1-steven@joruk.com> X-Mailer: git-send-email 2.14.1 MIME-Version: 1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The code is fine, but make it clear to the compiler. drivers/input/misc/adxl34x.c:134:35: warning: ‘<<’ in boolean context Signed-off-by: Steven Joruk --- drivers/input/misc/adxl34x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/misc/adxl34x.c b/drivers/input/misc/adxl34x.c index 2b2d02f408bb..e0caaa0de454 100644 --- a/drivers/input/misc/adxl34x.c +++ b/drivers/input/misc/adxl34x.c @@ -796,7 +796,7 @@ struct adxl34x *adxl34x_probe(struct device *dev, int irq, if (pdata->watermark) { ac->int_mask |= WATERMARK; - if (!FIFO_MODE(pdata->fifo_mode)) + if (FIFO_MODE(pdata->fifo_mode) == 0) ac->pdata.fifo_mode |= FIFO_STREAM; } else { ac->int_mask |= DATA_READY;