Now that we test the UTC flags in clock_update_slave(), the similar code in clock_utc_correct() is redundant.
Signed-off-by: Richard Cochran <[email protected]> --- clock.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/clock.c b/clock.c index da1fcc4..9d224c9 100644 --- a/clock.c +++ b/clock.c @@ -674,13 +674,7 @@ static int clock_utc_correct(struct clock *c, tmv_t ingress) if (!c->utc_timescale) return 0; - if (c->tds.flags & UTC_OFF_VALID && c->tds.flags & TIME_TRACEABLE) { - utc_offset = c->tds.currentUtcOffset; - } else if (c->tds.currentUtcOffset > c->utc_offset) { - utc_offset = c->tds.currentUtcOffset; - } else { - utc_offset = c->utc_offset; - } + utc_offset = c->utc_offset; if (c->tds.flags & LEAP_61) { leap = 1; -- 2.11.0 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Linuxptp-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linuxptp-devel
