diff options
author | Mao Wenan <maowenan@huawei.com> | 2019-12-04 09:08:51 +0800 |
---|---|---|
committer | Paul Burton <paulburton@kernel.org> | 2020-01-09 09:57:07 -0800 |
commit | 11d06df7b9f29ec5898901c2c94a58f4ecf60446 (patch) | |
tree | 811da988b59e4d24b15990a7ac177bba635cebbe /arch/mips/loongson2ef | |
parent | f3c560a61b4e32961738b5917674e5d9102aeb7f (diff) | |
download | lwn-11d06df7b9f29ec5898901c2c94a58f4ecf60446.tar.gz lwn-11d06df7b9f29ec5898901c2c94a58f4ecf60446.zip |
MIPS: Loongson2ef: drop pointless static qualifier in loongson_suspend_enter()
There is no need to have the 'T *v' variable static
since new value always be assigned before use it.
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Mao Wenan <maowenan@huawei.com>
Signed-off-by: Paul Burton <paulburton@kernel.org>
Cc: <jiaxun.yang@flygoat.com>
Cc: <ralf@linux-mips.org>
Cc: <jhogan@kernel.org>
Cc: <gregkh@linuxfoundation.org>
Cc: <tglx@linutronix.de>
Cc: <linux-mips@vger.kernel.org>
Cc: <linux-kernel@vger.kernel.org>
Cc: <kernel-janitors@vger.kernel.org>
Diffstat (limited to 'arch/mips/loongson2ef')
-rw-r--r-- | arch/mips/loongson2ef/common/pm.c | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |