From: Yu Watanabe Date: Mon, 7 Oct 2024 04:45:46 +0000 (+0900) Subject: homectl: drop unnecessary brackets X-Git-Tag: v257-rc1~310 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd9a02ce880905d83b5b6ddedb04c33f5942f51c;p=thirdparty%2Fsystemd.git homectl: drop unnecessary brackets Follow-up for 164ca24d7464253e5f8375226b792ef8f6eaffd0. --- diff --git a/src/home/homectl.c b/src/home/homectl.c index 741e5d72b7a..87961a2f222 100644 --- a/src/home/homectl.c +++ b/src/home/homectl.c @@ -2438,7 +2438,7 @@ static int acquire_group_list(char ***ret) { log_debug_errno(r, "No groups found."); else if (r < 0) return log_debug_errno(r, "Failed to enumerate groups, ignoring: %m"); - else { + else for (;;) { _cleanup_(group_record_unrefp) GroupRecord *gr = NULL; @@ -2468,7 +2468,6 @@ static int acquire_group_list(char ***ret) { if (r < 0) return log_oom(); } - } strv_sort(groups);