ntp: Remove unused variable flags in __hardpps
PATCH 1/1 ntp: Remove unused variable flags in __hardpps
kernel/time/ntp.c: In function ‘__hardpps’:kernel/time/ntp.c:877: warning: unused variable ‘flags’
commit a076b2146fabb0894cae5e0189a8ba3f1502d737 ("ntp: Remove ntp_lock, using the timekeeping locks to protect ntp state") removed its users, but not the actual variable.
Signed-off-by Geert Uytterhoeven <[email protected]>
--- kernel/time/ntp.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)
kernel/time/ntp.c +0 -1
@@ -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.0.4
Quoted 8 lines · Geert Uytterhoeven
kernel/time/ntp.c: In function ‘__hardpps’:kernel/time/ntp.c:877: warning: unused variable ‘flags’commit
a076b2146fabb0894cae5e0189a8ba3f1502d737("ntp: Removentp_lock, using the timekeeping locks to protect ntp state") removed its users, but not the actual variable.Signed-off-by Geert Uytterhoeven <[email protected]>
Thanks for catching this!
Acked-by John Stultz <[email protected]>