mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 00:47:10 +09:00
timesyncd: get rid of unnecessary 'r' assignments
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user