1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-30 06:25:37 +03:00

timesyncd: get rid of unnecessary 'r' assignments

This commit is contained in:
Lennart Poettering 2022-03-18 16:55:24 +01:00
parent 40c6b5143b
commit aabda4f3e0
2 changed files with 2 additions and 4 deletions

View File

@ -301,8 +301,7 @@ static int manager_adjust_clock(Manager *m, double offset, int leap_sec) {
break;
}
r = clock_adjtime(CLOCK_REALTIME, &tmx);
if (r < 0)
if (clock_adjtime(CLOCK_REALTIME, &tmx) < 0)
return -errno;
r = manager_save_time_and_rearm(m);

View File

@ -40,8 +40,7 @@ static int load_clock_timestamp(uid_t uid, gid_t gid) {
usec_t stamp;
/* check if the recorded time is later than the compiled-in one */
r = fstat(fd, &st);
if (r >= 0) {
if (fstat(fd, &st) >= 0) {
stamp = timespec_load(&st.st_mtim);
if (stamp > min)
min = stamp;