Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1909704yba; Sun, 7 Apr 2019 03:44:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqwuH4uiCJ6uYlMO2c6EvLqdhUIogNyMzPnbAvB/Kylb76PBtv8mmwZ2o4q0ahIO7xJ2xbVS X-Received: by 2002:a62:4602:: with SMTP id t2mr23326705pfa.26.1554633846192; Sun, 07 Apr 2019 03:44:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554633846; cv=none; d=google.com; s=arc-20160816; b=PVHcps/XRCWfKquiqFAYBa0WG50NX+nASHFemMcQQxCQJfZXrUFnika32WNledt+Fl YLn/0dIlhdYN0igA3hnneugCjpk5Iy8i/IvWesETQAQ8MpZSqFGdQxujs49ZGLdB/Mxu Nvmhi7B/DCo7vVM6N1FVH+art+88rINd/db0kQ0x5VM0EanFgHz/jUeCCrb/54CytcCD I+Til3UA+zd518V0ysi2vS6NoiosoWVWizXWrP9YIs2picbrjpB3IUfasAoGOJrwgkMy PY3AakVGqWrNj1CZSt5xcKuWVMQ1vDdHqI/llHeuJ2MvIkq+QreQ57pEvUVL2YFx+hTM rtNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=HKbfhHgk2eZxqozQ1vtXi1tou2CTWlsIiAvUwgGnGOU=; b=arDY3wDymK2yeRu1oXmLgSqruI7pBOBKxj0HR2B9X1bV7EBtOe2k/mKqWaQBJMkFAf a20oOuYg/QJX14jsinJquC+gtRf+PYB9c85PSVccKqCDJni0LNLGRRO0m1q/SWiTMNeJ YDUUNzMRzWPjpWcC7dyGXZpSiQvGRQ8055Q10ARE9TKMEFDygf3N6qm26qrO8vwnUrY1 HxIcRTFCy+z4xFtWvceD8ev+6hWIhdy7gaQxxWwrWAj1mFjI10Xjmxvz7YnWLxMPNjJW ENEyJncTxJNZt0HwQKuVeac2arnLnNCnDrMCfVvwAMvHeGhL+F8fSi/NrxAniHyhFqfI pcYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=uXlB49se; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r17si24055788pgm.52.2019.04.07.03.43.50; Sun, 07 Apr 2019 03:44:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=uXlB49se; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726366AbfDGKnQ (ORCPT + 99 others); Sun, 7 Apr 2019 06:43:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:49640 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726199AbfDGKnQ (ORCPT ); Sun, 7 Apr 2019 06:43:16 -0400 Received: from archlinux (cpc91196-cmbg18-2-0-cust659.5-4.cable.virginm.net [81.96.234.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7655820B1F; Sun, 7 Apr 2019 10:43:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554633795; bh=nObBJIX8XOIuxWwrFZ2KWxpYiR4ElR6c7/b2reo1RGI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=uXlB49seiERoQdb9OFeRzBRR4LCripdzCF67Nxdb5CjaSIE1+Ii4uYm4zYsn6VhR8 y0x+cNIY/6rZj136bT+fL1HT6QnTXQKnO+c0cutdmKhvwXLXP/Pq91KtAhHcvllmkh SGo6WtJL5T4/DkePZ/nDEEPlSj/Pu1C+bXN1SJVw= Date: Sun, 7 Apr 2019 11:43:05 +0100 From: Jonathan Cameron To: Melissa Wen Cc: Lars-Peter Clausen , Michael Hennerich , Stefan Popa , Hartmut Knaack , Peter Meerwald-Stadler , Greg Kroah-Hartman , linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, kernel-usp@googlegroups.com Subject: Re: [PATCH] staging: iio: frequency: ad9834: Remove unnecessary parentheses Message-ID: <20190407114305.324a794e@archlinux> In-Reply-To: <20190402201854.du6x75rkcm2ijmsc@smtp.gmail.com> References: <20190402201854.du6x75rkcm2ijmsc@smtp.gmail.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2 Apr 2019 17:18:54 -0300 Melissa Wen wrote: > Remove unneeded parentheses around the arguments of ||. This reduces > clutter and code behave in the same way. Change suggested by > checkpatch.pl. > > CHECK: Unnecessary parentheses around 'st->devid == ID_AD9833' > CHECK: Unnecessary parentheses around 'st->devid == ID_AD9837' > > Signed-off-by: Melissa Wen This isn't one I feel strongly about, but it'll get rid of the warning so is useful in the sense of cleaning up what we have to look at there! Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it. Thanks, Jonathan > --- > drivers/staging/iio/frequency/ad9834.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/iio/frequency/ad9834.c b/drivers/staging/iio/frequency/ad9834.c > index 0b0287503fb4..9cc6e751b479 100644 > --- a/drivers/staging/iio/frequency/ad9834.c > +++ b/drivers/staging/iio/frequency/ad9834.c > @@ -286,7 +286,7 @@ ssize_t ad9834_show_out0_wavetype_available(struct device *dev, > struct ad9834_state *st = iio_priv(indio_dev); > char *str; > > - if ((st->devid == ID_AD9833) || (st->devid == ID_AD9837)) > + if (st->devid == ID_AD9833 || st->devid == ID_AD9837) > str = "sine triangle square"; > else if (st->control & AD9834_OPBITEN) > str = "sine";