From: Miroslav Lichvar Date: Thu, 16 Mar 2023 16:19:33 +0000 (+0100) Subject: ntp: remove unnecessary check for NULL local timestamp X-Git-Tag: 4.4-pre1~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5f1a113f0d5b2430323c61a71c57e51f7145f5e;p=thirdparty%2Fchrony.git ntp: remove unnecessary check for NULL local timestamp After 5f4cbaab7e0e ("ntp: optimize detection of clients using interleaved mode") the local TX timestamp is saved for all requests indicating interleaved mode even when no previous RX timestamp is found. --- diff --git a/ntp_core.c b/ntp_core.c index 7462c7b7..57bda819 100644 --- a/ntp_core.c +++ b/ntp_core.c @@ -2500,7 +2500,7 @@ NCR_ProcessRxUnknown(NTP_Remote_Address *remote_addr, NTP_Local_Address *local_a return; if (local_ntp_rx) - CLG_SaveNtpTimestamps(local_ntp_rx, tx_ts ? &tx_ts->ts : NULL); + CLG_SaveNtpTimestamps(local_ntp_rx, &tx_ts->ts); } /* ================================================== */