From: Mao Wenan Date: Wed, 4 Dec 2019 01:08:51 +0000 (+0800) Subject: MIPS: Loongson2ef: drop pointless static qualifier in loongson_suspend_enter() X-Git-Tag: v5.10.7~3334^2~49 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=11d06df7b9f29ec5898901c2c94a58f4ecf60446;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Mao Wenan Signed-off-by: Paul Burton Cc: Cc: Cc: Cc: Cc: Cc: Cc: Cc: --- diff --git a/arch/mips/loongson2ef/common/pm.c b/arch/mips/loongson2ef/common/pm.c index 11f4cfd5..bcb7ae9 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();