From: Ivana Hutarova Varekova Date: Thu, 10 Dec 2009 12:26:00 +0000 (+0100) Subject: Fix cgroup_get_all_controller_{begin, next, end} api X-Git-Tag: v0.35~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f39390ba9456ceda64fb0422d1f4d40d9352b00c;p=thirdparty%2Flibcgroup.git Fix cgroup_get_all_controller_{begin, next, end} api remove the cgroup_initialized need from all of them - not needed Signed-off-by: Ivana Hutarova Varekova Signed-off-by: Dhaval Giani --- diff --git a/src/api.c b/src/api.c index 28c0c3d7..54a6d266 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;