From: Zbigniew Jędrzejewski-Szmek Date: Sat, 28 Jun 2025 18:14:06 +0000 (+0200) Subject: test-cgroup-util: minor simplification X-Git-Tag: v258-rc1~206^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=83e0e32944cc6960fe7c0e0674b48103a5ebf4ff;p=thirdparty%2Fsystemd.git test-cgroup-util: minor simplification --- diff --git a/src/test/test-cgroup-util.c b/src/test/test-cgroup-util.c index 8debc215271..3f3562c8785 100644 --- a/src/test/test-cgroup-util.c +++ b/src/test/test-cgroup-util.c @@ -370,10 +370,8 @@ TEST(cg_tests) { int all, hybrid, systemd, r; r = cg_unified(); - if (IN_SET(r, -ENOENT, -ENOMEDIUM)) { - log_tests_skipped("cgroup not mounted"); - return; - } + if (IN_SET(r, -ENOENT, -ENOMEDIUM)) + return (void) log_tests_skipped("cgroup not mounted"); assert_se(r >= 0); all = cg_all_unified();