Skip to content

Commit

Permalink
[PARISC] Kill pointless variable use in time.c
Browse files Browse the repository at this point in the history
Clean up a pointless use of a variable in update_cr16_clocksource. It just
looks silly.

Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
  • Loading branch information
Kyle McMartin authored and Kyle McMartin committed Oct 18, 2007
1 parent efb80e7 commit 730e844
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions arch/parisc/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,16 +189,14 @@ static struct clocksource clocksource_cr16 = {
#ifdef CONFIG_SMP
int update_cr16_clocksource(void)
{
int change = 0;

/* since the cr16 cycle counters are not synchronized across CPUs,
we'll check if we should switch to a safe clocksource: */
if (clocksource_cr16.rating != 0 && num_online_cpus() > 1) {
clocksource_change_rating(&clocksource_cr16, 0);
change = 1;
return 1;
}

return change;
return 0;
}
#else
int update_cr16_clocksource(void)
Expand Down

0 comments on commit 730e844

Please sign in to comment.