From patchwork Wed Aug 21 12:14:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yue Haibing X-Patchwork-Id: 11106519 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 AD1381399 for ; Wed, 21 Aug 2019 12:15:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 95DDB206DD for ; Wed, 21 Aug 2019 12:15:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727021AbfHUMPz (ORCPT ); Wed, 21 Aug 2019 08:15:55 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:4744 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726894AbfHUMPz (ORCPT ); Wed, 21 Aug 2019 08:15:55 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 9B3DE709F13984C0D1AA; Wed, 21 Aug 2019 20:15:51 +0800 (CST) Received: from localhost (10.133.213.239) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.439.0; Wed, 21 Aug 2019 20:15:45 +0800 From: YueHaibing To: , , , CC: , , , YueHaibing Subject: [PATCH -next] cpufreq: qcom-hw: remove set but not used variable 'prev_cc' Date: Wed, 21 Aug 2019 20:14:45 +0800 Message-ID: <20190821121445.72588-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.133.213.239] X-CFilter-Loop: Reflected Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org drivers/cpufreq/qcom-cpufreq-hw.c: In function qcom_cpufreq_hw_read_lut: drivers/cpufreq/qcom-cpufreq-hw.c:89:38: warning: variable prev_cc set but not used [-Wunused-but-set-variable] It is not used since commit 3003e75a5045 ("cpufreq: qcom-hw: Update logic to detect turbo frequency") Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/cpufreq/qcom-cpufreq-hw.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/cpufreq/qcom-cpufreq-hw.c b/drivers/cpufreq/qcom-cpufreq-hw.c index 3eea197..a9ae2f8 100644 --- a/drivers/cpufreq/qcom-cpufreq-hw.c +++ b/drivers/cpufreq/qcom-cpufreq-hw.c @@ -86,7 +86,7 @@ static int qcom_cpufreq_hw_read_lut(struct device *cpu_dev, struct cpufreq_policy *policy, void __iomem *base) { - u32 data, src, lval, i, core_count, prev_cc = 0, prev_freq = 0, freq; + u32 data, src, lval, i, core_count, prev_freq = 0, freq; u32 volt; struct cpufreq_frequency_table *table; @@ -139,7 +139,6 @@ static int qcom_cpufreq_hw_read_lut(struct device *cpu_dev, break; } - prev_cc = core_count; prev_freq = freq; }