From patchwork Thu Dec 28 02:47:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: JI-HUN KIM X-Patchwork-Id: 10134359 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 7C3766037D for ; Thu, 28 Dec 2017 02:47:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6CC2F2D007 for ; Thu, 28 Dec 2017 02:47:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 61A962D017; Thu, 28 Dec 2017 02:47:23 +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_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, 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 112022D007 for ; Thu, 28 Dec 2017 02:47:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752849AbdL1CrW (ORCPT ); Wed, 27 Dec 2017 21:47:22 -0500 Received: from mail-pf0-f193.google.com ([209.85.192.193]:35760 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753061AbdL1CrV (ORCPT ); Wed, 27 Dec 2017 21:47:21 -0500 Received: by mail-pf0-f193.google.com with SMTP id j124so20479530pfc.2; Wed, 27 Dec 2017 18:47:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=cxLblmjVaPm6c201bSx5us+3MwOE7KU15NTAAWPpwy8=; b=D7LTV898Im8Jc0uOmHmVV2Vy4TXj09CSwVPvGggO4Hv3wICHtC867untaXdsmvUO20 yn3S6+qgqaUlHdqi+nsNsl2uyKuD3OX1xORdQFCShXD4V9/GcHuQZHtktNktWB8VKhyP YuxaN7hxEwxmnynIV4Q6Orm4o2Kg+4m6NMqoJgcOKfKNvXnDh+XzcMNCgHIBiBe243Mr kdCECp3GV1H9lb5g4CJ83s0cO3S4B1c6koludhSB+WVgFe/C0l8YL+J6hMegNbrD3o2k 4Fvb09ZyZJzj8Gyf+0EvwymIMeQp3jzY0wO/+SB76BMc3qYBa+seS/NYp07ZgjVRasZn AyXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=cxLblmjVaPm6c201bSx5us+3MwOE7KU15NTAAWPpwy8=; b=AVfcJl9CRvZSZo9quadzh4aXUqduP4mFcexOeZGYo8fVCpWmPNIjMdZenK2eBKCdOt dXQMgYm7EJWS/XzELeXG32n8mcGwLF90jptFniO0MjprJhLFAH/VShNM3Z6Huyioz+7V SECznfK7JFmkHB2DvNKoDvljv/WZlK4DHD+Lx1XYiYCmUtLGt57wikQ7HZkoLPZw9/CG xqUhN/piqQYwvGilKBP9URVExWWcTDNoVtvRwKVvR8NO1iqpBj6KSvooSiBqrMUv47tn vDAWXOejI3m+KTMt4KhrW8SXt3q+ZLlZE9Agvgbmvm2Z4XQPfoJzbWFuG81yKJR0Mvw/ ZmpQ== X-Gm-Message-State: AKGB3mK+qlI3t6Q4Tuej+6BheK7uBd2kuK2ZYNTE1JXtWTSWfrjS9IyR Pu+m9TbO3tvh7pXRletibFE= X-Google-Smtp-Source: ACJfBouuIjRvVipsTHGlrNWgAz7LBwSiQc71gEgXg+Uo3p6gbsbPKIVdvwSsCrBaBddBwAbCf3dJjQ== X-Received: by 10.98.144.141 with SMTP id q13mr30564737pfk.140.1514429241119; Wed, 27 Dec 2017 18:47:21 -0800 (PST) Received: from MacBook-Air (96-68-179-129-static.hfc.comcastbusiness.net. [96.68.179.129]) by smtp.gmail.com with ESMTPSA id a23sm63205696pfa.177.2017.12.27.18.47.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Dec 2017 18:47:20 -0800 (PST) Date: Wed, 27 Dec 2017 18:47:18 -0800 From: Ji-Hun Kim To: lars@metafoo.de Cc: Michael.Hennerich@analog.com, jic23@kernel.org, knaack.h@gmx.de, pmeerw@pmeerw.net, gregkh@linuxfoundation.org, linux-iio@vger.kernel.org, device-drivers-devel@blackfin.uclinux.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] staging: iio: remove unnecessary parentheses Message-ID: <20171228024714.GA3110@MacBook-Air> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Clean up checkpatch warning: CHECK: Unnecessary parentheses around 'st->devid != ID_AD7195' Signed-off-by: Ji-Hun Kim --- drivers/staging/iio/adc/ad7192.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/iio/adc/ad7192.c b/drivers/staging/iio/adc/ad7192.c index cadfb96..f015955 100644 --- a/drivers/staging/iio/adc/ad7192.c +++ b/drivers/staging/iio/adc/ad7192.c @@ -271,7 +271,7 @@ static int ad7192_setup(struct ad7192_state *st, if (pdata->sinc3_en) st->mode |= AD7192_MODE_SINC3; - if (pdata->refin2_en && (st->devid != ID_AD7195)) + if (pdata->refin2_en && st->devid != ID_AD7195) st->conf |= AD7192_CONF_REFSEL; if (pdata->chop_en) {