Skip to contentSkip to conversation

clocksource: remove redundant code

PATCH In review Li Zefan 1 participant 1 message Nov 29, 2007 Timekeeping, clocksource core, NTP, alarmtimer

lore
Share & tools
lore

Li Zefan

author
#0 lore raw

PATCH 1/6 clocksource: remove redundant code

Flag CLOCK_SOURCE_WATCHDOG is cleared twice. Note clocksource_change_rating() won't do anyting with the cs flag.

---
 kernel/time/clocksource.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
kernel/time/clocksource.c +0 -1
index c8a9d13..0ba9fa8 100644
@@ -91,7 +91,6 @@ static void clocksource_ratewd(struct clocksource *cs, int64_t delta)
 	       cs->name, delta);
 	cs->flags &= ~(CLOCK_SOURCE_VALID_FOR_HRES | CLOCK_SOURCE_WATCHDOG);
 	clocksource_change_rating(cs, 0);
-	cs->flags &= ~CLOCK_SOURCE_WATCHDOG;
 	list_del(&cs->wd_list);
 }
 
Signature · 1 line
1.5.3.rc7