1
0
Fork 0
mirror of git://git.musl-libc.org/musl synced 2025-03-06 20:48:29 +01:00

reformat clock_adjtime with always-true condition removed

This commit is contained in:
Rich Felker 2020-06-02 20:21:48 -04:00
parent e0b17ef81e
commit 28be61227c

View file

@ -38,7 +38,6 @@ int clock_adjtime (clockid_t clock_id, struct timex *utx)
{
int r = -ENOSYS;
#ifdef SYS_clock_adjtime64
if (1) {
struct ktimex64 ktx = {
.modes = utx->modes,
.offset = utx->offset,
@ -86,7 +85,6 @@ int clock_adjtime (clockid_t clock_id, struct timex *utx)
utx->stbcnt = ktx.stbcnt;
utx->tai = ktx.tai;
}
}
if (SYS_clock_adjtime == SYS_clock_adjtime64 || r!=-ENOSYS)
return __syscall_ret(r);
if ((utx->modes & ADJ_SETOFFSET) && !IS32BIT(utx->time.tv_sec))