summaryrefslogtreecommitdiffstats
path: root/src/api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/api.c')
-rw-r--r--src/api.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/api.c b/src/api.c
index 28c0c3d..54a6d26 100644
--- a/src/api.c
+++ b/src/api.c
@@ -3224,9 +3224,6 @@ int cgroup_get_all_controller_end(void **handle)
{
FILE *proc_cgroup = (FILE *) *handle;
- if (!cgroup_initialized)
- return ECGROUPNOTINITIALIZED;
-
if (!proc_cgroup)
return ECGINVAL;
@@ -3244,9 +3241,6 @@ int cgroup_get_all_controller_next(void **handle, struct controller_data *info)
int hierarchy, num_cgroups, enabled;
char subsys_name[FILENAME_MAX];
- if (!cgroup_initialized)
- return ECGROUPNOTINITIALIZED;
-
if (!proc_cgroup)
return ECGINVAL;
@@ -3274,9 +3268,6 @@ int cgroup_get_all_controller_begin(void **handle, struct controller_data *info)
FILE *proc_cgroup = NULL;
char buf[FILENAME_MAX];
- if (!cgroup_initialized)
- return ECGROUPNOTINITIALIZED;
-
if (!info)
return ECGINVAL;