chiark / gitweb /
treewide: more log_*_errno + return simplifications
[elogind.git] / src / core / timer.c
index fc474f78ea1a01345ac4c41e4b7bfdb63656717e..fa134b13ad2c2d4750b2543dad2e62fc5a67a6ff 100644 (file)
@@ -147,10 +147,8 @@ static int timer_setup_persistent(Timer *t) {
                         _cleanup_free_ char *h = NULL;
 
                         r = get_home_dir(&h);
-                        if (r < 0) {
-                                log_error_errno(r, "Failed to determine home directory: %m");
-                                return r;
-                        }
+                        if (r < 0)
+                                return log_error_errno(r, "Failed to determine home directory: %m");
 
                         t->stamp_path = strjoin(h, "/.local/share/systemd/timers/stamp-", UNIT(t)->id, NULL);
                 }