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
parent
fa575b60f6
commit
14a97dc5da
6
clock.c
6
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;
|
||||
}
|
||||
|
||||
if (c->tds.flags & LEAP_61) {
|
||||
leap = 1;
|
||||
|
|
Loading…
Reference in New Issue