Skip to content

Commit

Permalink
cgroups/cgfsng: rework cgfsng_num_hierarchies()
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Dec 7, 2019
1 parent 52d08ab commit e3ffb28
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lxc/cgroups/cgfsng.c
Expand Up @@ -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;

Expand Down

0 comments on commit e3ffb28

Please sign in to comment.