cgroup-util: drop 'controller' argument from cg_get_keyed_attribute() and cg_is_empty()
The argument is completely unused. Let's drop it.
This commit is contained in:
@@ -254,7 +254,7 @@ int show_cgroup_by_path(
|
||||
if (!k)
|
||||
return -ENOMEM;
|
||||
|
||||
if (!(flags & OUTPUT_SHOW_ALL) && cg_is_empty(NULL, k) > 0)
|
||||
if (!(flags & OUTPUT_SHOW_ALL) && cg_is_empty(path_startswith(k, "/sys/fs/cgroup/")) > 0)
|
||||
continue;
|
||||
|
||||
if (!shown_pids) {
|
||||
|
||||
Reference in New Issue
Block a user