Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1667754yba; Tue, 2 Apr 2019 13:20:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqxCGS9pywhXlsegOYcnL7xIifw55+bcBXISXtbarpI2SldDDXGjF5N6QL/d+8ifoR7lLzyU X-Received: by 2002:a17:902:7785:: with SMTP id o5mr53027042pll.33.1554236408622; Tue, 02 Apr 2019 13:20:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554236408; cv=none; d=google.com; s=arc-20160816; b=hdTbmSh/Z/00wqEo82ZTauEaDlL0bsHzuydklreuWOEPpCyCY/5umB/cM1rudahZN5 Ixu9K7RcYXUN0Tn9B5TnM7sX2p+G8ZGy44ZnJvRkTuCqvj0/lzaBXPUSV7T38ZANgXAK 4w0TqwTs2J4+EzQ6G67gPcbDo3ldnI7BGDMkYlnEgBYi6sjKgKUiiOU4VIltpUli7QOR mpw0IZl5INk74u7mDX3+Qwx3CC7CXqszm00jK2UOsmBGqyA/lAykvY1XFxFFqovUy36d RA9pmI2GIgjw21yTLPDL4Ws43Phuz7XfEx4hCSkVDTacRa6CS1kNqu6i9Laryn1eceZo qKRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=/8GqjM3aW6s7XFPIBnwupG+p/kaAxMERytiVj0ted94=; b=utkGXAOS71SHIhEYmXqxyeaZWdRmNBI+8AKvVZT+y+5/llCi2FVV4oTgdU181JGFaB EUi0Y3BtD6DE7BM9DundJ5mJ2tWxG3Xwxtk+w5hNOEvMTu881oNgBAtQwdG+wF1x9Icb F3mUyk2LdpbgUeRorYXPcgDSWQt2yOC69hHBcHCj6paJDGpUvWS87sG4XQzFF9M1U8vT tylCrelEg+vH8Lwbh+zr3dccZ/aTMta4reMFjbvuHxbqPESYuqw9Q7m2aKQYRJ8EecN3 DTgHmYb0rGtjlziTtWP0JMtRqiZEOJ2ZbMktNlevLhCAL0HiYZk4zqmVZdcEbG76CfT+ SOAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oHzWf0mp; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i37si11961960pgb.436.2019.04.02.13.19.52; Tue, 02 Apr 2019 13:20:08 -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=@gmail.com header.s=20161025 header.b=oHzWf0mp; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726218AbfDBUTI (ORCPT + 99 others); Tue, 2 Apr 2019 16:19:08 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:33619 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725812AbfDBUTI (ORCPT ); Tue, 2 Apr 2019 16:19:08 -0400 Received: by mail-qt1-f196.google.com with SMTP id k14so16918544qtb.0; Tue, 02 Apr 2019 13:19:07 -0700 (PDT) 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=/8GqjM3aW6s7XFPIBnwupG+p/kaAxMERytiVj0ted94=; b=oHzWf0mpDBhkHuGHdpjFGRgT2Q0WaWbQqI31CyssCvAr6hhe4KsdMBph5VbKcF5DPe pZQWkvfu4l5uYuQe6FK0DzVkB0i1iQoceRaCrj6b9V9myLxWqaeDssSGunKN1yDyncgs LR76XuH3zuRURKTSwKkQCGXyFHdrA/ed3gU8xcHV3p5Wru7XGFYu4zl2jaCt1eunm/M3 4GQ3+wFnHEJgPiv5zRQfN5UZV647+BY+BeWUbZsbGxwuGXV2IrjLprHCetHOrjLzZZKD EETmRGYR1MEsg1Y/kfq6nVr5/+aS5vupVmYeH5q1MLOEw90W1hvt5w+BYpBc4ULNjsHC PAZQ== 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=/8GqjM3aW6s7XFPIBnwupG+p/kaAxMERytiVj0ted94=; b=t89AtLyze+LXYwJHC9e5/u2km9d5RYD7+v3YKf3XMcqNfjNmPhnLX90uf+79I/4fsK /RynttimN6nLMtOPzVzCO2igt452MIeE5BlDYdZJA2IA9rueCIOtfl9Z4KAKfRmw76F1 8+PMqXiuiBpsdC2glOS+RNcJrpBMr7zshh0uW/aVOLEitBWx/HHxbDClZ4unYl7fw2de CuyNoBrw3M8aIg8fP0FbefUNSy9dpGGgAbh0OHqLm2ljozOGYV0l2NplNAwKNLpZ/g6r +EF6qdWL/8i1/gvenqMFj89vr5zZ8rwgqbwpN+4CMxuIb+A+cAcUhWqAPOX+mwdq0eQJ CG4g== X-Gm-Message-State: APjAAAXO5RgPqbY+StFzAocda9eL98KgBdTg2sQgjD0MkNXxIhdahVn4 fZtdw3aInpkym5mEx+SADmhbNq3jKZA= X-Received: by 2002:ac8:267d:: with SMTP id v58mr46124649qtv.340.1554236347360; Tue, 02 Apr 2019 13:19:07 -0700 (PDT) Received: from smtp.gmail.com ([143.107.45.1]) by smtp.gmail.com with ESMTPSA id g13sm7327967qkm.89.2019.04.02.13.19.03 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 02 Apr 2019 13:19:06 -0700 (PDT) Date: Tue, 2 Apr 2019 17:18:54 -0300 From: Melissa Wen To: Lars-Peter Clausen , Michael Hennerich , Stefan Popa , Jonathan Cameron , Hartmut Knaack , Peter Meerwald-Stadler , Greg Kroah-Hartman Cc: linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, kernel-usp@googlegroups.com Subject: [PATCH] staging: iio: frequency: ad9834: Remove unnecessary parentheses Message-ID: <20190402201854.du6x75rkcm2ijmsc@smtp.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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"; -- 2.20.1