From 27641876c57348e700acc31ef618723a19e4502e Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Wed, 10 Feb 2021 13:35:51 +0100 Subject: [PATCH] ntp: simplify NSR_Finalise() --- ntp_sources.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/ntp_sources.c b/ntp_sources.c index 8c5f613..c80f09c 100644 --- a/ntp_sources.c +++ b/ntp_sources.c @@ -198,14 +198,7 @@ NSR_Initialise(void) void NSR_Finalise(void) { - SourceRecord *record; - unsigned int i; - - for (i = 0; i < ARR_GetSize(records); i++) { - record = get_record(i); - if (record->remote_addr) - clean_source_record(record); - } + NSR_RemoveAllSources(); LCL_RemoveParameterChangeHandler(slew_sources, NULL);