Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2036132ybl; Tue, 3 Dec 2019 17:12:15 -0800 (PST) X-Google-Smtp-Source: APXvYqxRCwvA8cZP/yfoh+hgUDy9ZdKk6V9wFy91FW+KIeYjwVFsAn0W8/xGLhV9XR+yIzfPDFgi X-Received: by 2002:a05:6830:1705:: with SMTP id 5mr754513otk.72.1575421935913; Tue, 03 Dec 2019 17:12:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575421935; cv=none; d=google.com; s=arc-20160816; b=WGQJriLymnzwLkqx6I63RErFE/Ff0MxPvNRfSHTSCa0qC/qkWYMMPB8mIATSKck2ud q2e2cdo07MHvZQg2GY0EKeJ9I4Qeul/YjJ6v5wjVnfsmNhoLyKF4v8aMic813xCmTHGG +AdlZDZhofAYgjWte+Qkcz66pYm2whNxQJ12/P3jePemdjMlZs8zOXQvk2V0o0TaqnHy lK8bqKLFZK++hIUdijzXBmZ22Mmcgjjjcm0FgYzhnTj5t/9XafJjuAIfnRcOtTTs2185 4jnnQQ+jkQmhaLS6LjUFcwJLWcTOYoheL1sWHYTwPv15W+OXxvuL23hLS8EZmYj5iJKw gD2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=WRVOc3Jg5P9mvrxzDC4YxyzEzzf2mkmoYRxEFR3iqAg=; b=WhuzqyYLYZQqS9loLZDgMhRnugio+oRHEYHqLig4yBC+gctEHmFQ9xkNhUSikYQi0l H1WllhMtjHQXuqdwl29+weV3x5CMYXXof2Q3oOQR6BCtNp/3Ha6NLRsCCmQZv1775IvH 5qgdfuprnwYx3VURBvZTyjNbDmE3J+ZjipKX7nUy3g8qVksiYJCnou6KrI9tZafBK5Bp iFSR+L9AvVR0ij35KIoYJ8g1D0Npe7OmonRzIwYfnwUmGuPcBPFT1TCF5pApr54umFuT 1SVW60y+vM/mhgOWwWdPkl3HJOfWWhWYanPbPilHQL22UAFA7chIRk6ySSHv+g569/FR sMlw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o84si2061433oig.204.2019.12.03.17.12.03; Tue, 03 Dec 2019 17:12:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726298AbfLDBL1 (ORCPT + 99 others); Tue, 3 Dec 2019 20:11:27 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:47860 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726008AbfLDBL0 (ORCPT ); Tue, 3 Dec 2019 20:11:26 -0500 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 327F0256F3BED4D30C70; Wed, 4 Dec 2019 09:11:24 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.439.0; Wed, 4 Dec 2019 09:11:14 +0800 From: Mao Wenan To: , , , , , , CC: , , , Hulk Robot Subject: [PATCH -next] MIPS: Loongson2ef: drop pointless static qualifier in loongson_suspend_enter() Date: Wed, 4 Dec 2019 09:08:51 +0800 Message-ID: <20191204010851.160284-1-maowenan@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is no need to have the 'T *v' variable static since new value always be assigned before use it. Reported-by: Hulk Robot Signed-off-by: Mao Wenan --- arch/mips/loongson2ef/common/pm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/loongson2ef/common/pm.c b/arch/mips/loongson2ef/common/pm.c index 11f4cfd581fb..bcb7ae9777cf 100644 --- a/arch/mips/loongson2ef/common/pm.c +++ b/arch/mips/loongson2ef/common/pm.c @@ -91,7 +91,7 @@ static inline void stop_perf_counters(void) static void loongson_suspend_enter(void) { - static unsigned int cached_cpu_freq; + unsigned int cached_cpu_freq; /* setup wakeup events via enabling the IRQs */ setup_wakeup_events(); -- 2.20.1