Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp511361pxb; Sat, 10 Apr 2021 09:48:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPYePFUbYUi0tlRNfCnDJuiT8D4CxRY5WxSH/teEdgCVlGbI4BbPVdhHgGdP9ozwbgftE6 X-Received: by 2002:a17:90b:120a:: with SMTP id gl10mr19666345pjb.212.1618073333234; Sat, 10 Apr 2021 09:48:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618073333; cv=none; d=google.com; s=arc-20160816; b=fj799DM+vFQt/N+vK+JI+aRHujr+5GQPZEFotfWewlhYCFCh1y6Z3310WU/Aaa7TRC iO+NaVvkDZ6YBW5EuEBo/U+BBIcyviefMg1Zyo3OjI/okgUPlXKe0NNFmfBp6SOhTjJi g0A4E5XD7RxS5GzTfflhAA1HcpgTAQDG36EiH5vba137JZUUXUOIREBMiAjIoNBjKA4n 7G9S1zWYlLQg3Zxcme7cYVI7wcvl8Pi01YzL3OTsiIex+KJ6NN2rAdR/vDiMKE5313L5 xQfK4hId5R8i0PKhoJNGn78kRVzmoOVa3YbwRYGn/Cz/l97hlKS5TOvUl0Q68vtwHXXv uruQ== 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 :message-id:date:subject:to:from; bh=yja8hXnSiAu+0aHoGZXireKiKWwNFLqckJS2FN9snds=; b=qx9Auwf3xwvnBY2nTw/zKiqV37KmossNOS5C9CHXD1zCgeWJDdxlo58JFKniKglg+G P5ZwDTHdZqun/Ljdx39LCpNlGjm+7HFqvqgW1FKZGekrZCkkH8xoVkUcSxpVPwbzlMhZ 5GtzsKwThkY+ZSglB/44KBrWINXrStVse9V6WYQbBcgSNQtP5W+1fVbpy/PAJTM6op7s vTOW7JMjcE47pX3lvbuinpW+S/woF0vjrfO4U2sW0mvaRiFJfbgrDcaredjOfIrPL2Yb 6aJ97CPmHXwdxTu3VgHutkluoxf8GRlRiEzbR239BCsCn8TVigdnp5YoYFUuWUtaVLuf kgow== 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z15si6746986pgf.291.2021.04.10.09.48.40; Sat, 10 Apr 2021 09:48: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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234334AbhDJQrr (ORCPT + 99 others); Sat, 10 Apr 2021 12:47:47 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:49503 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234513AbhDJQrq (ORCPT ); Sat, 10 Apr 2021 12:47:46 -0400 Received: from mail-wr1-f72.google.com ([209.85.221.72]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1lVGle-0008Ko-Re for linux-kernel@vger.kernel.org; Sat, 10 Apr 2021 16:47:30 +0000 Received: by mail-wr1-f72.google.com with SMTP id m13so3709048wri.16 for ; Sat, 10 Apr 2021 09:47:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=yja8hXnSiAu+0aHoGZXireKiKWwNFLqckJS2FN9snds=; b=DwwRT5T3edNIezNJrgi9Xqrdmkj75awv/oviMYyGfOPalWTVc+/joM2aw3QJ24ms7W lmSvCKh+tl0ES3fGM+X1a7O1UYBAVA66iVsPh5RtlvCobT2TXdg9CInw/8vI801ZX+8f ZjvDYail8+k7XQbMRdg2UgedH/1gVk9YWm551LddX3fU8d8d0B4j13CT1XI2ZI2nQzEL B7m3so/W1sEotB+bda1qXNSId7vG0xQuY4RRxd+SRKiH4Kyn/k+d5oNm/Sf9BsBrC/K4 a6ek+HyNnw01j6hJ+erSGyQFdoIg/j8YO2UyKkf8knkeX4S0CQRJZjXiGQPMhli6F+Lw IpUw== X-Gm-Message-State: AOAM530CGi3Sxeg+MMwuaET/HSJZEYdNogBzuGcxr81JFTQx9YCMxwuV hvuval85F94wrghdx8FSwmtqsBze9zmGjE48nSiUHuNWP/1V+bfqCwW5gmDb68pQ7cCu3GRPt3K 11vHpJNsZ4Q0wVr6kYsvgStnXhuY14Zw5A3CZoXIB2Q== X-Received: by 2002:a5d:5711:: with SMTP id a17mr2657285wrv.342.1618073250619; Sat, 10 Apr 2021 09:47:30 -0700 (PDT) X-Received: by 2002:a5d:5711:: with SMTP id a17mr2657269wrv.342.1618073250459; Sat, 10 Apr 2021 09:47:30 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-192-147.adslplus.ch. [188.155.192.147]) by smtp.gmail.com with ESMTPSA id o12sm10130918wrj.34.2021.04.10.09.47.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Apr 2021 09:47:30 -0700 (PDT) From: Krzysztof Kozlowski To: Jonathan Cameron , Lars-Peter Clausen , Krzysztof Kozlowski , linux-iio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] iio: adc: exynos: drop unneeded variable assignment Date: Sat, 10 Apr 2021 18:47:28 +0200 Message-Id: <20210410164728.8096-1-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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)); -- 2.25.1