From: Harlan Stenn Date: Sat, 24 Feb 2007 10:24:04 +0000 (-0500) Subject: Updates to ntp_loopfilter.c from Dave Mills X-Git-Tag: NTP_4_2_5P12~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4548cbf69ac5edd1514644fc17955d1ac7a9e7e;p=thirdparty%2Fntp.git Updates to ntp_loopfilter.c from Dave Mills bk: 45e01244M8YUh7xNWQaZLs1WRBXe1A --- diff --git a/ntpd/ntp_loopfilter.c b/ntpd/ntp_loopfilter.c index 56b9e1cf8..84d789027 100644 --- a/ntpd/ntp_loopfilter.c +++ b/ntpd/ntp_loopfilter.c @@ -522,8 +522,7 @@ local_clock( } } #if defined(STA_NANO) && NTP_API == 4 - if (pll_control && kern_enable && clock_max > 0 && - sys_tai == 0) { + if (pll_control && kern_enable && sys_tai == 0) { memset(&ntv, 0, sizeof(ntv)); ntv.modes = MOD_TAI; ntv.constant = i + TAI_1972 - 1; @@ -970,7 +969,7 @@ loop_config( * is zero to cancel any previous nonsense. If you don't * want this initialization, remove the ntp.drift file. */ - if (pll_control && kern_enable && clock_max > 0) { + if (pll_control && kern_enable) { memset((char *)&ntv, 0, sizeof(ntv)); ntv.modes = MOD_OFFSET | MOD_FREQUENCY; ntv.freq = (int32)(drift_comp * 65536e6);