Skip to content

Commit

Permalink
MIPS: Loongson2ef: drop pointless static qualifier in loongson_suspen…
Browse files Browse the repository at this point in the history
…d_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 <[email protected]>
Signed-off-by: Mao Wenan <[email protected]>
Signed-off-by: Paul Burton <[email protected]>
Cc: <[email protected]>
Cc: <[email protected]>
Cc: <[email protected]>
Cc: <[email protected]>
Cc: <[email protected]>
Cc: <[email protected]>
Cc: <[email protected]>
Cc: <[email protected]>
  • Loading branch information
Mao Wenan authored and paulburton committed Jan 9, 2020
1 parent f3c560a commit 11d06df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/loongson2ef/common/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 11d06df

Please sign in to comment.