diff options
Diffstat (limited to 'src/api.c')
-rw-r--r-- | src/api.c | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -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; |