Skip to contentSkip to conversation

ntp: Eliminate compile warning of unused variable flags

PATCH New Ying Xue 1 participant 1 message Jun 3, 2013 Timekeeping, clocksource core, NTP, alarmtimer

lore
Share & tools
lore

Ying Xue

author
#0 lore raw

PATCH 1/1 ntp: Eliminate compile warning of unused variable flags

kernel/time/ntp.c: In function ‘__hardpps’:
kernel/time/ntp.c:877:16: warning: unused variable ‘flags’ [-Wunused-variable]

---
 kernel/time/ntp.c |    1 -
 1 file changed, 1 deletion(-)
kernel/time/ntp.c +0 -1
index 12ff13a..8f5b3b9 100644
@@ -874,7 +874,6 @@ static void hardpps_update_phase(long error)
 void __hardpps(const struct timespec *phase_ts, const struct timespec *raw_ts)
 {
 	struct pps_normtime pts_norm, freq_norm;
-	unsigned long flags;
 
 	pts_norm = pps_normalize_ts(*phase_ts);
 
Signature · 1 line
1.7.9.5