From patchwork Fri Jul 17 16:55:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 11670787 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D3E1C13B6 for ; Fri, 17 Jul 2020 16:58:23 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A9B4D20704 for ; Fri, 17 Jul 2020 16:58:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="gLmkWpxS"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="sOXt9VbP" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A9B4D20704 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=rIQuIKgiTXXcK6fZcMY2/VZQeK+3KpIm7Z6JK65uO3E=; b=gLmkWpxSRRLxylh+MBi0cVGhx uRd3uMJZpW50Bwifz2uJ4s8vV7aZVQMt1B2jd+kmt1uvF1FaXKPUp9x80QB6Sho6+XpgzyYM4RtiF BODTBtRnuL27OeJxyK7p/70XUN4LZGpQLojJJrcwyc/fCvkUrm8mIRT9aVVVWfngB3gkESxfbtQh+ s9+n2VYMk4WEozyENFGGLBaaRFNn6NJ2Zxvgs+hT96JD3Jr+SLmiE/TuE1P2OCh9m9uMzC4YntTCH KevfUKdJ+5TUYTnhwvuPbyiCGHFD6nV7US8h9V+pqo++1aTehYi4oSKkcFcysy6gvAOGG2foi9MN1 5ov624vRw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jwTeW-0000Zl-A5; Fri, 17 Jul 2020 16:56:04 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jwTeS-0000YE-CI for linux-arm-kernel@lists.infradead.org; Fri, 17 Jul 2020 16:56:01 +0000 Received: by mail-wr1-x443.google.com with SMTP id z13so11892553wrw.5 for ; Fri, 17 Jul 2020 09:56:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=W0NdwY9SbjwHcTXsovlQ3v7LbQPLWjEb4KHf8LUGjbY=; b=sOXt9VbPlc5N0UZ4A4vCRWgtuBbT/N0Cs1uY6oUQWBDzdCPYc9I3EUBsJ95AWLQQsu GbjmozZBJ4upGfnc1kkJk2MjNUqZU2a1ffzF8z/w2Fs+iuvoyVfBx+Gx+qdGqhT2LAQA mxZPTYpRDMTmJMnqhoJVNVqXJ0dwiQ8FZ4b3GmnGn2To1L2WMslwLpjP7IZ9VbghGxqa gzzBN1Diq5Epf+1OTF3zOHVeiq85oExuTc8CfHdmBoNPC1IHwdipDyJ5qQMHDDguiCu4 87MbEySCThUvuSCjBgDqYRBg0NXqbuPn8MdGHj/va7T6rUxlxbrMwFxaj3TJDy7DkGaI 5kuw== 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=W0NdwY9SbjwHcTXsovlQ3v7LbQPLWjEb4KHf8LUGjbY=; b=uMW2CZMyH0iR5fvxTB6x264zsJhlfgCPqytLwHDzR/DYGI5VWhY/yHIisYz8d9wRQE RRIIpD6MSl/D4vk9iyHX8UkzRhntELUgDUt+nviKdx5O9fQk9hmIOXeadIJ4VNT+JPZL GH3+hD1veUCrQ5WqjFwxc0dBToyzOdgkbfuiEO+jX2ZR8F1A99yPHXKAdAQff8Y4jmiU yrrDiubanLES3Q2FWAHnhFV5aoipDzfpQqRSBIbHQjapyQVaQW7K3+w0c1rLKuYlWqF9 bX+qgZLFRfsWYPG+mSshLuRhnVFGPD48yqb+vOTicm7CMu48fjSzCvnm+yTJK7qm11VF VBLQ== X-Gm-Message-State: AOAM533hGlPvHGlvl3UxgJyddBfA6WC0EQ6H37MWxW7Ts4yvNe3HR0bA Kx9ho4yIRxg+dIhFPQxEd2mlPg== X-Google-Smtp-Source: ABdhPJwgRPbtjNyvrRZZorKrXJsoK0TE02TWb6iUUdarbMSRUJWwlu4GZ6e7rfb/OwhWQRKDjbkOFg== X-Received: by 2002:a5d:630c:: with SMTP id i12mr12302586wru.158.1595004959310; Fri, 17 Jul 2020 09:55:59 -0700 (PDT) Received: from localhost.localdomain ([2.27.167.94]) by smtp.gmail.com with ESMTPSA id k4sm14941516wrp.86.2020.07.17.09.55.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jul 2020 09:55:58 -0700 (PDT) From: Lee Jones To: jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net Subject: [PATCH 01/30] iio: adc: ti_am335x_adc: Remove a couple of unused 'read' variables Date: Fri, 17 Jul 2020 17:55:09 +0100 Message-Id: <20200717165538.3275050-2-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200717165538.3275050-1-lee.jones@linaro.org> References: <20200717165538.3275050-1-lee.jones@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200717_125600_457881_3075CF5C X-CRM114-Status: GOOD ( 12.27 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:443 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-iio@vger.kernel.org, Rachna Patil , Lee Jones , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Fixes the following W=1 kernel build warning(s): drivers/iio/adc/ti_am335x_adc.c: In function ‘tiadc_buffer_preenable’: drivers/iio/adc/ti_am335x_adc.c:297:21: warning: variable ‘read’ set but not used [-Wunused-but-set-variable] 297 | int i, fifo1count, read; | ^~~~ drivers/iio/adc/ti_am335x_adc.c: In function ‘tiadc_buffer_predisable’: drivers/iio/adc/ti_am335x_adc.c:346:21: warning: variable ‘read’ set but not used [-Wunused-but-set-variable] 346 | int fifo1count, i, read; | ^~~~ Cc: Rachna Patil Signed-off-by: Lee Jones --- drivers/iio/adc/ti_am335x_adc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/iio/adc/ti_am335x_adc.c b/drivers/iio/adc/ti_am335x_adc.c index 9d984f2a8ba74..93b67bb165044 100644 --- a/drivers/iio/adc/ti_am335x_adc.c +++ b/drivers/iio/adc/ti_am335x_adc.c @@ -294,7 +294,7 @@ static int tiadc_start_dma(struct iio_dev *indio_dev) static int tiadc_buffer_preenable(struct iio_dev *indio_dev) { struct tiadc_device *adc_dev = iio_priv(indio_dev); - int i, fifo1count, read; + int i, fifo1count; tiadc_writel(adc_dev, REG_IRQCLR, (IRQENB_FIFO1THRES | IRQENB_FIFO1OVRRUN | @@ -303,7 +303,7 @@ static int tiadc_buffer_preenable(struct iio_dev *indio_dev) /* Flush FIFO. Needed in corner cases in simultaneous tsc/adc use */ fifo1count = tiadc_readl(adc_dev, REG_FIFO1CNT); for (i = 0; i < fifo1count; i++) - read = tiadc_readl(adc_dev, REG_FIFO1); + tiadc_readl(adc_dev, REG_FIFO1); return 0; } @@ -343,7 +343,7 @@ static int tiadc_buffer_predisable(struct iio_dev *indio_dev) { struct tiadc_device *adc_dev = iio_priv(indio_dev); struct tiadc_dma *dma = &adc_dev->dma; - int fifo1count, i, read; + int fifo1count, i; tiadc_writel(adc_dev, REG_IRQCLR, (IRQENB_FIFO1THRES | IRQENB_FIFO1OVRRUN | IRQENB_FIFO1UNDRFLW)); @@ -358,7 +358,7 @@ static int tiadc_buffer_predisable(struct iio_dev *indio_dev) /* Flush FIFO of leftover data in the time it takes to disable adc */ fifo1count = tiadc_readl(adc_dev, REG_FIFO1CNT); for (i = 0; i < fifo1count; i++) - read = tiadc_readl(adc_dev, REG_FIFO1); + tiadc_readl(adc_dev, REG_FIFO1); return 0; }