Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1229568pxb; Sun, 11 Apr 2021 11:56:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzh0sFt3ctGZCeGhOQphH0unPinXWZJ08jyBgHD59YWX31nJyqh/FkGaF3L+wBScF5p7TYb X-Received: by 2002:aa7:cb90:: with SMTP id r16mr26901661edt.139.1618167413996; Sun, 11 Apr 2021 11:56:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618167413; cv=none; d=google.com; s=arc-20160816; b=nJ/vSpxiZP/ANJTyZIuiHfdCBTzLjQlGOSBPN7d1V81DMStphuod6NsyT4lEHHPykH Pa6uUz1LjjMT6GhsLuEafD+lUSqz3clpv6mzTm10v8DqA3H15kxzF7X+1X/GF23jhMVm wFcFOFlGfKvK/5kJhOCubeiR615v0MIjlmhp8X3l2oAoC1RMFARR+vXyYl9d44kx0arO KLyFLg/nUr/9UW38BWZ9g6L5rIAdHn/lflScSA0fOWFSCYqWc+gVbwQZ8w8B8d7phJ8n kRnkar0MmbcCaYy2ZiBH/uTWlOm7R/FaOgEVoioHjiQvf4u2GAhu8xSGHAzpkCTCJlpa GSXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=nuZrvQwDvKqXvl286aYcV9+Macxv9ifmRwkQ//fTh50=; b=f3YYLz2p2qDF0kESuLp+QdhuA6dT18+4oKrjFX4VmKMcCwO3AAZDcK7rNyQG26s9gy rJGCnzBe7E8vS5qrpzfKvBMHV6Cdbd1ywqQQr4U7JTKO0Pu1QMKuf86S792yXTIynAuz sqfQqB1xcKjIM4Px7IKCPidPLmnaMDq7bL1sHzIFTOjXpQ8Jf9Y+a5YLbGS44g6KJUeE UbpFXl/Fkblgt5U9ayqBD3pZOGZ9abUunlnNwn5QGMM4w41+JAG728MvLFy91HbHUSOQ vKKp9MmASaYOgtlvR6FusFWD2TiGa+CRq2PPph7mjY6RzW14cI4vKzXn1UTb9fyUoOR3 kA5Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c13si4233189ejb.141.2021.04.11.11.56.30; Sun, 11 Apr 2021 11:56:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235576AbhDKOAh (ORCPT + 99 others); Sun, 11 Apr 2021 10:00:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:38684 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233514AbhDKOAe (ORCPT ); Sun, 11 Apr 2021 10:00:34 -0400 Received: from jic23-huawei (cpc108967-cmbg20-2-0-cust86.5-4.cable.virginm.net [81.101.6.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 55A8B611AD; Sun, 11 Apr 2021 14:00:15 +0000 (UTC) Date: Sun, 11 Apr 2021 15:00:39 +0100 From: Jonathan Cameron To: Krzysztof Kozlowski Cc: Lars-Peter Clausen , linux-iio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] iio: adc: exynos: drop unneeded variable assignment Message-ID: <20210411150039.1dcc76b8@jic23-huawei> In-Reply-To: <20210410164728.8096-1-krzysztof.kozlowski@canonical.com> References: <20210410164728.8096-1-krzysztof.kozlowski@canonical.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 10 Apr 2021 18:47:28 +0200 Krzysztof Kozlowski wrote: > The initialization of 'ret' variable in probe function is shortly after > overwritten. This initialization is simply not used. > > Addresses-Coverity: Unused value > Signed-off-by: Krzysztof Kozlowski Too late for this cycle, but I've queued it up for the next one. Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to see if we missed anything. Thanks, Jonathan > --- > drivers/iio/adc/exynos_adc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/iio/adc/exynos_adc.c b/drivers/iio/adc/exynos_adc.c > index 784c10deeb1a..2d8e36408f0e 100644 > --- a/drivers/iio/adc/exynos_adc.c > +++ b/drivers/iio/adc/exynos_adc.c > @@ -794,7 +794,7 @@ static int exynos_adc_probe(struct platform_device *pdev) > struct s3c2410_ts_mach_info *pdata = dev_get_platdata(&pdev->dev); > struct iio_dev *indio_dev = NULL; > bool has_ts = false; > - int ret = -ENODEV; > + int ret; > int irq; > > indio_dev = devm_iio_device_alloc(&pdev->dev, sizeof(struct exynos_adc));