Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp6208103imb; Fri, 8 Mar 2019 11:48:25 -0800 (PST) X-Google-Smtp-Source: APXvYqxE0R32C9j7Xua4LDJk8VL1q+AFqWx+OMGs9oh1hjTUQUWiFw5r+F936jJ/5T72gZcFVHkg X-Received: by 2002:a17:902:e50b:: with SMTP id ck11mr20933247plb.25.1552074504991; Fri, 08 Mar 2019 11:48:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1552074504; cv=none; d=google.com; s=arc-20160816; b=aIihJUY3CUZcxbRUJ/ZClETchocM21sEEpLurq0h4ElHLzZfJntZJSR3YpBNEY5kLj b0VBfYa9GMIWUzWCRCbpRgDqWLcbM1ZswdmEYGQFItkN6XXSO6Ef/fas8EwVsNgFglEV lAloORD1k/wiiM0E9B2zABm66fMQhzRQdvVG3YFUdos9OaU2c76M5ZFrRRIuJGTFaDe6 P0+giZ8LYly2QfbiI5Lb4CvSVjp1hXtwA0uGMmDl4/zLITtTmOU/+xWZpTaB6FitlQQz lClvNGyEOOdgE+do+/UlkyrabGR3xIlXvYgt+wfDrJXV4SFxRzb0sQokkDqxuVpGtvMr gJOA== 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:date:subject:cc:to:from :dkim-signature; bh=p2Ize1qdd/+pcZ9Tq8J7ceDNACDDuhrJ3Re5syZqpYs=; b=X2zA0OFb3xwD9QhNEWMAkbA6TaKeylcmckdcrItowVZM49YqSv0I/pPzkNBG+h6Wzg Fma42Q2sU1FB4sNLbiUXgqd3U7cZHFcL3RCylxLgdx2bTd4aIbxCHV32L3yNKQruub2D vr3TW5PiiLiaF2rijiDy86KKHumjSFoYQKrLKV07JZQuzXyUz/M03UeTA6hmapjk5Fw+ 6UvM84xyRbXcS2jEaUpNcQ40FqlxcHVwtvzAkkYl0daHixCNyKf8R2WVedfLRqEphCB6 NkKI5sOpjhXtcWLlgoyajG5K/QLeiZzblPjUpNY2PngCIyXVxcmN/dtDLRctomRt/VaU t5Pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EDqnDhlO; 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 q81si7926353pfc.42.2019.03.08.11.48.09; Fri, 08 Mar 2019 11:48:24 -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=EDqnDhlO; 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 S1726864AbfCHTrh (ORCPT + 99 others); Fri, 8 Mar 2019 14:47:37 -0500 Received: from mail-qk1-f195.google.com ([209.85.222.195]:44710 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726258AbfCHTrg (ORCPT ); Fri, 8 Mar 2019 14:47:36 -0500 Received: by mail-qk1-f195.google.com with SMTP id u22so2989641qkj.11; Fri, 08 Mar 2019 11:47:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=p2Ize1qdd/+pcZ9Tq8J7ceDNACDDuhrJ3Re5syZqpYs=; b=EDqnDhlOqoC3k/JHRM46+brhChFEDWpche5SR6l8Bkgenep3WEH+bpoth0fTEoxwpD sV5n2S8tm64ekKym1+aKfHggu6CI/FGqzY7rThSRA2Ayqb3oxL2tyB2b+JS/Rwo3+w70 XcHWLV7dIddHHqnhDqV3t5ldgJxxqHRw4hXCZVThmbjEYx+HDv+0NvPp1zV/8N33SlAb r/NYXgc7lLXGFZ+BPJ6pitkveehqEUX7LrPxRe4dn6aoCyUig7L55VbRdTUu0T7HoXrY puOaGLvT4EhD49zS46QPNtNCc9Yi0yh2iIkKMkgFLqhbTn+H9kNJAHL6rxhhVMpaGmjn Z2RA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=p2Ize1qdd/+pcZ9Tq8J7ceDNACDDuhrJ3Re5syZqpYs=; b=c4pJ9faokuQJECd8+6uR9u+rGaWbUihpydoB+5x6L3lEGeNJMRVQabmgDnvE5vvvTz 6+QR/1dE+x0XfE/bvujcrSkkTEykoL5Z4KgKLt7TgV2FpXwFxjuAL9yTCluJs5FMM/SW MYdcWZC7RvVQHBb8XO/KQYW88QJ4YP3YADpreP1czWxpPSbl+BESaKjTIgkFVUkmNS7j o7tk7kR80winG5PRAvNhC0+kwCS4TYdyjhEiMNAxkSeX/Vg4hZa6M+M99CEb0Kb1dp0N 3de3cDmnV6hzCXl46b3jk8P2aN/VtCrTbn6o28d+XvXe95m0fs4RY/oiiqmd8fZgwRXx Y1cw== X-Gm-Message-State: APjAAAUspNJZwSM2dV3O/Iwy6+f5Vs5OBwxuAZNQtl9xzOg+IWJvBIMw rDwx8PF0qc7GVmLu/JpRWdE= X-Received: by 2002:a05:620a:15a8:: with SMTP id f8mr2801331qkk.127.1552074455750; Fri, 08 Mar 2019 11:47:35 -0800 (PST) Received: from crypto.semfio.usp.br ([143.107.45.1]) by smtp.gmail.com with ESMTPSA id n27sm2393038qtf.11.2019.03.08.11.47.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Mar 2019 11:47:35 -0800 (PST) From: Anderson Reis X-Google-Original-From: Anderson Reis To: jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, matt.ranostay@konsulko.com Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-usp@googlegroups.com, Lucas Oshiro , Anderson Reis Subject: [PATCH v2 1/4] iio:potentiostat:lmp91000: remove unnecessary parentheses Date: Fri, 8 Mar 2019 16:46:52 -0300 Message-Id: <20190308194655.5983-2-anderson.reis.rosa@usp.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190308194655.5983-1-anderson.reis.rosa@usp.com> References: <20190308194655.5983-1-anderson.reis.rosa@usp.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lucas Oshiro Remove unnecessary parentheses on line 116, and solve these checkpatch.pl 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