chiark / gitweb /
treewide: yet more log_*_errno + return simplifications
[elogind.git] / src / timedate / timedatectl.c
index 65cae0bd69bfe457c98fee7c91d6565a41ed1dab..49196ca7937b1224d62e500cfc094f6edde21404 100644 (file)
@@ -363,10 +363,8 @@ static int list_timezones(sd_bus *bus, char **args, unsigned n) {
         assert(n == 1);
 
         r = get_timezones(&zones);
         assert(n == 1);
 
         r = get_timezones(&zones);
-        if (r < 0) {
-                log_error_errno(r, "Failed to read list of time zones: %m");
-                return r;
-        }
+        if (r < 0)
+                return log_error_errno(r, "Failed to read list of time zones: %m");
 
         pager_open_if_enabled();
         strv_print(zones);
 
         pager_open_if_enabled();
         strv_print(zones);