]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Updates to ntp_loopfilter.c from Dave Mills
authorHarlan Stenn <stenn@ntp.org>
Sat, 24 Feb 2007 10:24:04 +0000 (05:24 -0500)
committerHarlan Stenn <stenn@ntp.org>
Sat, 24 Feb 2007 10:24:04 +0000 (05:24 -0500)
bk: 45e01244M8YUh7xNWQaZLs1WRBXe1A

ntpd/ntp_loopfilter.c

index 56b9e1cf8edddb46bdf623fc50846b381ea65057..84d7890273cff605810c8a4929e0567844b5e942 100644 (file)
@@ -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);