cgroups/cgfsng: rework cgfsng_num_hierarchies()

parent f7cdc98a
......@@ -1966,6 +1966,9 @@ __cgfsng_ops static int cgfsng_num_hierarchies(struct cgroup_ops *ops)
{
int i = 0;
if (!ops)
return ret_set_errno(-1, ENOENT);
if (!ops->hierarchies)
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment