diff options
author | Kyle McMartin <kyle@mcmartin.ca> | 2007-10-18 03:03:45 -0400 |
---|---|---|
committer | Kyle McMartin <kyle@shortfin.cabal.ca> | 2007-10-18 03:58:52 -0400 |
commit | 730e844d57693f464c7f9954a0f7102414164c3f (patch) | |
tree | ddc6d8eec6ca21ce7635a68389b7737d4be00e8b /arch/parisc/kernel | |
parent | efb80e7e097d0888e59fbbe4ded2ac5a256f556d (diff) |
[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: Kyle McMartin <kyle@mcmartin.ca>
Diffstat (limited to 'arch/parisc/kernel')
-rw-r--r-- | arch/parisc/kernel/time.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/parisc/kernel/time.c b/arch/parisc/kernel/time.c index 8b3062a5c812..24be86bba94d 100644 --- a/arch/parisc/kernel/time.c +++ b/arch/parisc/kernel/time.c | |||
@@ -189,16 +189,14 @@ static struct clocksource clocksource_cr16 = { | |||
189 | #ifdef CONFIG_SMP | 189 | #ifdef CONFIG_SMP |
190 | int update_cr16_clocksource(void) | 190 | int update_cr16_clocksource(void) |
191 | { | 191 | { |
192 | int change = 0; | ||
193 | |||
194 | /* since the cr16 cycle counters are not synchronized across CPUs, | 192 | /* since the cr16 cycle counters are not synchronized across CPUs, |
195 | we'll check if we should switch to a safe clocksource: */ | 193 | we'll check if we should switch to a safe clocksource: */ |
196 | if (clocksource_cr16.rating != 0 && num_online_cpus() > 1) { | 194 | if (clocksource_cr16.rating != 0 && num_online_cpus() > 1) { |
197 | clocksource_change_rating(&clocksource_cr16, 0); | 195 | clocksource_change_rating(&clocksource_cr16, 0); |
198 | change = 1; | 196 | return 1; |
199 | } | 197 | } |
200 | 198 | ||
201 | return change; | 199 | return 0; |
202 | } | 200 | } |
203 | #else | 201 | #else |
204 | int update_cr16_clocksource(void) | 202 | int update_cr16_clocksource(void) |