Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1454950pxb; Sun, 11 Apr 2021 20:46:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+y1R6pa8t2WMcuCN40nvea8OdHcirfhV5lGAUoqPueZm4jRlGyB5tnD00O9aExDDn8zJ9 X-Received: by 2002:a05:6402:22f9:: with SMTP id dn25mr12926105edb.171.1618199171501; Sun, 11 Apr 2021 20:46:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618199171; cv=none; d=google.com; s=arc-20160816; b=P5qbXh8m1GdPFx3WWBt7w4k1D6MiSVHOSBx5cu78iJw68cMnbWrwcstEuC8/YZXFq5 KfBFQw14kmSbqaa38N/EyOlZJUZab59wbJ6M2wwCpKwp9Npphd6/bL91zw0OaC+V0AQG zyZEOAQZQmsfi8VnBITyo1C555Wrtq4+9pvLbQS0hkwXH82jJ+YWA/Dusf8K597rzWLg tiGhszlliND81lWS+solzAnF6VdQlu4geUI7d9EIotQx+xr4P6EuPrrrEprybj6lv547 DLe/kw2fFhYfmJni1vaIRqCxjUWhd1kk6jdMnRBu1wUu1YtcfABEyOAdedZD1LPCBSOZ JarQ== 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:cc:to:from; bh=5TQmSTw+pRtSvcZGb5pLEQDYQA8LMxFp9aRNtUi9eqw=; b=TIKYX9xSTZ5uy9xRGrsHR44gTDWtFSKZuwepcsBPNMChlq+zMAGJnGnzvkYUE6VH6f Otyr/tYfbDVQ94C4QJW8WpSPnnQrnfV9Iwx+osG69lSPx2WJgTqG/mDn9ESnAx5qlW+Y LjMz8eUWBrlxb55Updhn0VBoVdXWmRl0b9dMYAutjxwnl+MHiw/3iMO6msdN4eomFpLv t7Thw9wqiGlLTKsiDRh0KLRlV20YLYhEN4F3Mok7HNmgLfskSy7zv3g2CByqe/JW0FDB tWO9ia+M4w0hNmBjQWzmPUHu0z/dFC95jvd8FoZ5JzokeFD8ZoE6R64Q4oskau9OvAMU ivwA== 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=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v7si7416505edb.231.2021.04.11.20.45.49; Sun, 11 Apr 2021 20:46:11 -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=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236432AbhDLDkk (ORCPT + 99 others); Sun, 11 Apr 2021 23:40:40 -0400 Received: from out30-130.freemail.mail.aliyun.com ([115.124.30.130]:41044 "EHLO out30-130.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235366AbhDLDke (ORCPT ); Sun, 11 Apr 2021 23:40:34 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R161e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04394;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=9;SR=0;TI=SMTPD_---0UVCP-NX_1618198809; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UVCP-NX_1618198809) by smtp.aliyun-inc.com(127.0.0.1); Mon, 12 Apr 2021 11:40:15 +0800 From: Jiapeng Chong To: edubezval@gmail.com Cc: j-keerthy@ti.com, rui.zhang@intel.com, daniel.lezcano@linaro.org, amitk@kernel.org, linux-pm@vger.kernel.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] thermal: ti-soc-thermal: remove useless variable Date: Mon, 12 Apr 2021 11:40:08 +0800 Message-Id: <1618198808-22556-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following gcc warning: drivers/thermal/ti-soc-thermal/ti-bandgap.c:1146:7: warning: variable ‘val’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/thermal/ti-soc-thermal/ti-bandgap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/thermal/ti-soc-thermal/ti-bandgap.c b/drivers/thermal/ti-soc-thermal/ti-bandgap.c index 8a3646e..2df0e09 100644 --- a/drivers/thermal/ti-soc-thermal/ti-bandgap.c +++ b/drivers/thermal/ti-soc-thermal/ti-bandgap.c @@ -1143,13 +1143,12 @@ static int ti_bandgap_restore_ctxt(struct ti_bandgap *bgp) for (i = 0; i < bgp->conf->sensor_count; i++) { struct temp_sensor_registers *tsr; struct temp_sensor_regval *rval; - u32 val = 0; rval = &bgp->regval[i]; tsr = bgp->conf->sensors[i].registers; if (TI_BANDGAP_HAS(bgp, COUNTER)) - val = ti_bandgap_readl(bgp, tsr->bgap_counter); + ti_bandgap_readl(bgp, tsr->bgap_counter); if (TI_BANDGAP_HAS(bgp, TSHUT_CONFIG)) ti_bandgap_writel(bgp, rval->tshut_threshold, -- 1.8.3.1