test-cgroup-util: minor simplification
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user