chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test-strv: add test for strv_equal
[elogind.git]
/
src
/
timedate
/
timedatectl.c
diff --git
a/src/timedate/timedatectl.c
b/src/timedate/timedatectl.c
index 65cae0bd69bfe457c98fee7c91d6565a41ed1dab..49196ca7937b1224d62e500cfc094f6edde21404 100644
(file)
--- a/
src/timedate/timedatectl.c
+++ b/
src/timedate/timedatectl.c
@@
-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);