From patchwork Fri Jul 17 16:55:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 11670789 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 B05A96C1 for ; Fri, 17 Jul 2020 16:58:25 +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 81F9220704 for ; Fri, 17 Jul 2020 16:58:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="XqyeFkIL"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="VGtCMRlR" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 81F9220704 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=SaZeOoYSiTD3eeAiT+jr4nvm4g5NEmWrnuj5ifyW8Qw=; b=XqyeFkILL33cFNPi2CJQ2+haP 7tdGWMrTa3Tj/5ddSabMdd11Ih8Wzb59uwOAlz4YCeqxZr5669PG6+si1OAV1HndgryIVQCDv5qtG yZJKrTP0BOPt4AJzh2btXGKGOs2t2yBTmGBFo3xTaqCTBqe+QD882rcInmJNVKiUytCusFIDAEC3f Fqr3JnCeod0N3sjUGmpMcTBwNBX25WYcE7ZNxtTCFx/26cBXYWoJv+yGLw2rkXtTCZCqlp70NSYKD b+0sBxkD9RozG193UlsTidWBx6J1LkXK8o+RfsNZn+myoYl234i9oNy/KyBDW4M5N2vlQzXLKVk0O MGhpwI6Zw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jwTed-0000cG-Nc; Fri, 17 Jul 2020 16:56:11 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jwTeT-0000YY-KT for linux-arm-kernel@lists.infradead.org; Fri, 17 Jul 2020 16:56:02 +0000 Received: by mail-wm1-x344.google.com with SMTP id g10so7563224wmc.1 for ; Fri, 17 Jul 2020 09:56:01 -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=7pd6ShoPrm0jZpbjskrRfnA1hCGWtl3SFnepd2S/QNM=; b=VGtCMRlRyKO1bci+KeMExFH/2APwqhMYP6S3B9+EOf6gpg1qNARu0VHR3LvT61Neyg nm3rd+el8yz8XmTP2+zYHKNdshyA6ue/Nj/FWIZzGGJX8oqDJOz+Ct5Ou1DzYG54qFDH V3B7uywTdM+fb7kdwwIBORo/PJ0J8/kF+HGGc4mzFysjY89jf0bkZPJrq+15EKzqE7Yw LmZadfjDmnuJ4YH7zpONh4thewCq9vVBYbQ7vvaAJN/1cPTt5xt+0JbtOkStyaj3FdAG Y0yTXp9azBD9EZhNwWD5+SxbEosCZnQPQm0L27uCb61jiO13Y9ZD9xrZFWxUU1MyYrkU 8PSA== 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=7pd6ShoPrm0jZpbjskrRfnA1hCGWtl3SFnepd2S/QNM=; b=MHRrs4wiO+wKx15jfDahE/Rcfo/U3YsrMDIPenzNykyMn6hpvxC4sA+EB/kIwjP3jJ 5lawqqENoIZqjPiYEi7aIqJdBIEYLNLULC9dFUDyTUU7DyQBhMTDKKE8bwveZO3DcPUI adHdBGEEvLKzMhywoxEx75uZTW23Nn1QQz8ZlydgVltmQ5UUK1iy19S2babFYmUZYMN4 PS71LSg6k9TE/qp3MGSMLlwAU5yHQZ8JwsLMvhex4gFLud4a9R2/1W4BDRjz9+jLPCqQ glC8WnXWQG1TUbelkpiVaD7A8AZKjokesLPIPU30fe348cLfwggHCAWkyRB93gpgYnwi +NDA== X-Gm-Message-State: AOAM530DBb6jyyNgls3UBy+lsowvj8dFbfgtK1iFCSBalW9LzA02qKwv u70qKeDrPklhbDBT6937WvIa3A== X-Google-Smtp-Source: ABdhPJzMIXHm3ytdzPTg/jzS+f+DoP3PtJaIUny4rj64gipaY/71JD/hoOkN+ChIiten42HePer0ZA== X-Received: by 2002:a1c:3b02:: with SMTP id i2mr9952267wma.24.1595004960384; Fri, 17 Jul 2020 09:56:00 -0700 (PDT) Received: from localhost.localdomain ([2.27.167.94]) by smtp.gmail.com with ESMTPSA id k4sm14941516wrp.86.2020.07.17.09.55.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jul 2020 09:55:59 -0700 (PDT) From: Lee Jones To: jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net Subject: [PATCH 02/30] iio: adc: twl4030-madc: Remove set but unused variables 'len' Date: Fri, 17 Jul 2020 17:55:10 +0100 Message-Id: <20200717165538.3275050-3-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_125601_740814_A7D039C2 X-CRM114-Status: GOOD ( 12.77 ) 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:344 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: Amit Kucheria , linux-iio@vger.kernel.org, J Keerthy , linux-kernel@vger.kernel.org, Sebastian Reichel , Mikko Ylinen , Lee Jones , 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/twl4030-madc.c: In function ‘twl4030_madc_threaded_irq_handler’: drivers/iio/adc/twl4030-madc.c:475:9: warning: variable ‘len’ set but not used [-Wunused-but-set-variable] 475 | int i, len, ret; | ^~~ Cc: Sebastian Reichel Cc: J Keerthy Cc: Mikko Ylinen Cc: Amit Kucheria Signed-off-by: Lee Jones --- drivers/iio/adc/twl4030-madc.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/iio/adc/twl4030-madc.c b/drivers/iio/adc/twl4030-madc.c index 472b08f37feae..826d8295e9b3c 100644 --- a/drivers/iio/adc/twl4030-madc.c +++ b/drivers/iio/adc/twl4030-madc.c @@ -472,7 +472,7 @@ static irqreturn_t twl4030_madc_threaded_irq_handler(int irq, void *_madc) struct twl4030_madc_data *madc = _madc; const struct twl4030_madc_conversion_method *method; u8 isr_val, imr_val; - int i, len, ret; + int i, ret; struct twl4030_madc_request *r; mutex_lock(&madc->lock); @@ -504,8 +504,8 @@ static irqreturn_t twl4030_madc_threaded_irq_handler(int irq, void *_madc) continue; method = &twl4030_conversion_methods[r->method]; /* Read results */ - len = twl4030_madc_read_channels(madc, method->rbase, - r->channels, r->rbuf, r->raw); + twl4030_madc_read_channels(madc, method->rbase, + r->channels, r->rbuf, r->raw); /* Free request */ r->result_pending = false; r->active = false; @@ -525,8 +525,8 @@ static irqreturn_t twl4030_madc_threaded_irq_handler(int irq, void *_madc) continue; method = &twl4030_conversion_methods[r->method]; /* Read results */ - len = twl4030_madc_read_channels(madc, method->rbase, - r->channels, r->rbuf, r->raw); + twl4030_madc_read_channels(madc, method->rbase, + r->channels, r->rbuf, r->raw); /* Free request */ r->result_pending = false; r->active = false;