Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp6258711imb; Fri, 8 Mar 2019 13:06:56 -0800 (PST) X-Google-Smtp-Source: APXvYqwYvbAuO5RGExBN8jtEim31PWumdQ/1I45iAgJCOsni0sgkvQ3Gi/gPRmnl+URZzW87Xdr7 X-Received: by 2002:a17:902:266:: with SMTP id 93mr16124058plc.161.1552079216439; Fri, 08 Mar 2019 13:06:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1552079216; cv=none; d=google.com; s=arc-20160816; b=raixo8k1J6Ug+TKuHZw67Pl8Yho07QFAdPdROYehGteMTfZdAzM45qJdlI3oghHSBu 4Wtqrbo/7YefsG9f36e0g8P702hAdb8O82d4aAnId7iB+Ib2eC5YWJB79X1u2f9FqPtI HsLVQfni4DLcbk4+xtyPGHlKheTyHXOVnkdN2UxDJ1meFB6WI0RmNPWmcVXEE1ZUSYu8 IYeDbAYq7HjMRpv6x3cGW1JZ3sRLOA7KKG1RQFcFpdjzitb3UNCHR4rD1/VkJcinGr59 rIAclq7gvq4vcJm/B300HJx0OE51xwPgjyGKjy+ki+8jH+QJpQtY7IfyEJK7soQNsA8d Qe3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=AzpGHxOhuzmCwQUu597Gv7oDndytfHCGzFPVLQY4IFA=; b=e/R1QAQPOoV59twlRHodTY8RUIhY+ho/Z3PT0CTiY+xNHh4cisUyLHfdFIv+MmYr+i 5Xw1eZB6W+KuwvLAIUiLtHetmLEu0zUMFgvZgytZMR6/nmZVbo1lq2OhIx4U14r/K69F 20H70+GjFgn7O2zGgUJJS/vAHfbqDbUnTgUkNkfX32+NH5rfhCnrXrM54EQm/lqh40Hx /l8aJok0X1EBVWw2/c5kKCWqp/clYObgBe71pbMvu+8jKba/EXmGyEs+5o4/m5NsSRXC ZFh6jldn0TTyXyzDhgzo+LPkk3uJKcYv3+OtIolIiMD/m6hLKB72juMR+DiBWiQWoua1 yNHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="B+/I1I4+"; 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 f15si8275012pln.39.2019.03.08.13.06.40; Fri, 08 Mar 2019 13:06:56 -0800 (PST) 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="B+/I1I4+"; 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 S1726388AbfCHVEy (ORCPT + 99 others); Fri, 8 Mar 2019 16:04:54 -0500 Received: from mail-lf1-f66.google.com ([209.85.167.66]:46463 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726249AbfCHVEy (ORCPT ); Fri, 8 Mar 2019 16:04:54 -0500 Received: by mail-lf1-f66.google.com with SMTP id g12so15198073lfb.13; Fri, 08 Mar 2019 13:04:52 -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:references:mime-version :content-disposition:in-reply-to:user-agent; bh=AzpGHxOhuzmCwQUu597Gv7oDndytfHCGzFPVLQY4IFA=; b=B+/I1I4+hN5w9W+NXDls4bzmW1aAwnzVZaMWn6LaxwYALMIzp3hay5RJ6PVOeNd8RO WV1L2crUu19EhflyVBkYshLOoi8NrZ8SGk2TjfDfWlWtpfU+2FsDEGhKL1rwNSV/bo2h 2qvVgKGCRJfKZ9MPoQpEcW8zR8BcFCrOJaZqfl589dwZULwulOAEyJDbo1hkOLOdMvUD ir4HYeavDRpdrda/sp30oQ7Yb6ZEW9yPCrCyu6GgMYzruzCTdevlT0CLhCHdvnig5/s/ jcP6qsYbsYLqxcDUZXCe/73qybquphjzqUbeVG2tOs+Lvj7m9hH6YhXlPl3ehMqIouaB ba3w== 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:references :mime-version:content-disposition:in-reply-to:user-agent; bh=AzpGHxOhuzmCwQUu597Gv7oDndytfHCGzFPVLQY4IFA=; b=oW5luJwWQ/Bn1ghPW280GB96NE2IJE+4OnACN+pfJTDsgnzCIYzc5Yo6IVy6DNySrX Q1EHFrCNZwKo/Bf/Itfex0Nu91/DxkxgDLDR45Jqr+ZPOYpIn/VhwsU/199YkjG3Aw9M rgfgyQeuHfwwNKKVtnhSTEy1vywXIZIP3nYM7IjW/VMpiEmB4/rarNJfPW8khJltT55j 4Fa1UmYgUCoFJNh45CHXaCXUx0QnCoXT/1pC8Pj51kJO/Sa0S0L0i0800O/LPaCbsCC9 LTo0YBkGwAe5iZrRRlb/sgqrvCHN42KeBwkBGjg59973J++4MCv++JS+Y4B8vYjYDlzc vNmQ== X-Gm-Message-State: APjAAAVOUelfFlmVStta+9/bWsUfV0ZpMqFeMcsQOxt7mLFKEsN9OW5y ckkjclFVxRDilqwebXee/+s= X-Received: by 2002:a19:ae0a:: with SMTP id f10mr10980469lfc.1.1552079092088; Fri, 08 Mar 2019 13:04:52 -0800 (PST) Received: from localhost (89-64-60-178.dynamic.chello.pl. [89.64.60.178]) by smtp.gmail.com with ESMTPSA id u26sm1647476lfi.41.2019.03.08.13.04.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 08 Mar 2019 13:04:51 -0800 (PST) Date: Fri, 8 Mar 2019 22:04:26 +0100 From: Tomasz Duszynski To: Anderson Reis Cc: jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, matt.ranostay@konsulko.com, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-usp@googlegroups.com, Lucas Oshiro Subject: Re: [PATCH v2 1/4] iio:potentiostat:lmp91000: remove unnecessary parentheses Message-ID: <20190308210425.GB32641@arch> References: <20190308194655.5983-1-anderson.reis.rosa@usp.com> <20190308194655.5983-2-anderson.reis.rosa@usp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190308194655.5983-2-anderson.reis.rosa@usp.com> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 08, 2019 at 04:46:52PM -0300, Anderson Reis wrote: > From: Lucas Oshiro > > Remove unnecessary parentheses on line 116, and solve these checkpatch.pl No need to explicitly point finger at changed lines. This is what context lines are for. > CHECKs: > > - lmp91000.c:116: CHECK: Unnecessary parentheses around 'state != channel' > - lmp91000.c:116: CHECK: Unnecessary parentheses around 'channel == LMP91000_REG_MODECN_TEMP' > > Signed-off-by: Lucas Oshiro > Signed-off-by: Anderson Reis > --- > drivers/iio/potentiostat/lmp91000.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/iio/potentiostat/lmp91000.c b/drivers/iio/potentiostat/lmp91000.c > index 90e895adf997..03d277621861 100644 > --- a/drivers/iio/potentiostat/lmp91000.c > +++ b/drivers/iio/potentiostat/lmp91000.c > @@ -113,7 +113,7 @@ static int lmp91000_read(struct lmp91000_data *data, int channel, int *val) > return -EINVAL; > > /* delay till first temperature reading is complete */ > - if ((state != channel) && (channel == LMP91000_REG_MODECN_TEMP)) > + if (state != channel && channel == LMP91000_REG_MODECN_TEMP) > usleep_range(3000, 4000); > > data->chan_select = channel != LMP91000_REG_MODECN_3LEAD; > -- > 2.20.1 >