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:
parent
40c6b5143b
commit
aabda4f3e0
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user