sys_timex: remove workaround for broken ntp_adjtime on macOS

Early beta releases of macOS Big Sur had a signed/unsigned error in
Apple's implementation of ntp_adjtime. Apple have since fixed this error
and the workaround is no longer required.
This commit is contained in:
Bryan Christianson 2021-04-20 09:32:52 +12:00 committed by Miroslav Lichvar
parent 9a716cc284
commit 40d80624f6

View file

@ -75,13 +75,6 @@ convert_timex_frequency(const struct timex *txc)
freq_ppm = txc->freq / FREQ_SCALE; freq_ppm = txc->freq / FREQ_SCALE;
#ifdef MACOSX
/* Temporary workaround for Apple bug treating freq as unsigned number */
if (freq_ppm > 32767) {
freq_ppm -= 65536;
}
#endif
return -freq_ppm; return -freq_ppm;
} }