Remove redundant test on the UTC flags.

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 <richardcochran@gmail.com>
master
Richard Cochran 2017-07-24 08:21:34 +02:00
parent fa575b60f6
commit 14a97dc5da
1 changed files with 1 additions and 7 deletions

View File

@ -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;