Skip to content
Snippets Groups Projects
Commit 730e844d authored by Kyle McMartin's avatar Kyle McMartin Committed by Kyle McMartin
Browse files

[PARISC] Kill pointless variable use in time.c


Clean up a pointless use of a variable in update_cr16_clocksource. It just
looks silly.

Signed-off-by: default avatarKyle McMartin <kyle@mcmartin.ca>
parent efb80e7e
No related branches found
No related tags found
No related merge requests found
...@@ -189,16 +189,14 @@ static struct clocksource clocksource_cr16 = { ...@@ -189,16 +189,14 @@ static struct clocksource clocksource_cr16 = {
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
int update_cr16_clocksource(void) int update_cr16_clocksource(void)
{ {
int change = 0;
/* since the cr16 cycle counters are not synchronized across CPUs, /* since the cr16 cycle counters are not synchronized across CPUs,
we'll check if we should switch to a safe clocksource: */ we'll check if we should switch to a safe clocksource: */
if (clocksource_cr16.rating != 0 && num_online_cpus() > 1) { if (clocksource_cr16.rating != 0 && num_online_cpus() > 1) {
clocksource_change_rating(&clocksource_cr16, 0); clocksource_change_rating(&clocksource_cr16, 0);
change = 1; return 1;
} }
return change; return 0;
} }
#else #else
int update_cr16_clocksource(void) int update_cr16_clocksource(void)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment