diff --git a/src/slurmd/common/xcgroup.c b/src/slurmd/common/xcgroup.c index 0afd2673caa3c8255524ee0ebf223eab03845b03..55cf92f2fd70ed4aa06f36bcb19d1c7d31465f48 100644 --- a/src/slurmd/common/xcgroup.c +++ b/src/slurmd/common/xcgroup.c @@ -129,19 +129,13 @@ clean: /* * destroy a cgroup namespace - * - * returned values: - * - XCGROUP_ERROR - * - XCGROUP_SUCCESS */ -int xcgroup_ns_destroy(xcgroup_ns_t* cgns) +void xcgroup_ns_destroy(xcgroup_ns_t* cgns) { xfree(cgns->mnt_point); xfree(cgns->mnt_args); xfree(cgns->subsystems); xfree(cgns->notify_prog); - - return XCGROUP_SUCCESS; } /* @@ -399,14 +393,13 @@ int xcgroup_create(xcgroup_ns_t* cgns, xcgroup_t* cg, return XCGROUP_SUCCESS; } -int xcgroup_destroy(xcgroup_t* cg) +void xcgroup_destroy(xcgroup_t* cg) { cg->ns = NULL; xfree(cg->name); xfree(cg->path); cg->uid = -1; cg->gid = -1; - return XCGROUP_SUCCESS; } int xcgroup_lock(xcgroup_t* cg) diff --git a/src/slurmd/common/xcgroup.h b/src/slurmd/common/xcgroup.h index 1a625f455ea4b04cd418087a82069e38c38fa252..3bf46a190c6091ce1180f561518113c4e85d800b 100644 --- a/src/slurmd/common/xcgroup.h +++ b/src/slurmd/common/xcgroup.h @@ -93,12 +93,8 @@ int xcgroup_ns_create(slurm_cgroup_conf_t *conf, /* * destroy a cgroup namespace - * - * returned values: - * - XCGROUP_ERROR - * - XCGROUP_SUCCESS */ -int xcgroup_ns_destroy(xcgroup_ns_t* cgns); +void xcgroup_ns_destroy(xcgroup_ns_t* cgns); /* * mount a cgroup namespace @@ -161,12 +157,8 @@ int xcgroup_create(xcgroup_ns_t* cgns, xcgroup_t* cg, /* * destroy a cgroup internal structure - * - * returned values: - * - XCGROUP_ERROR - * - XCGROUP_SUCCESS */ -int xcgroup_destroy(xcgroup_t* cg); +void xcgroup_destroy(xcgroup_t* cg); /* * lock a cgroup (must have been instanciated)