From: Christian Brauner Date: Thu, 27 Jun 2019 12:26:38 +0000 (+0200) Subject: cgroups: simplify cgfsng_setup_limits() X-Git-Tag: lxc-3.2.0~18^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6280d4c97dd3b72aa2f72cf44b9af888a03052df;p=thirdparty%2Flxc.git cgroups: simplify cgfsng_setup_limits() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c index ae2f5dcf9..daa2a75d3 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -2396,13 +2396,10 @@ static bool __cg_unified_setup_limits(struct cgroup_ops *ops, } __cgfsng_ops static bool cgfsng_setup_limits(struct cgroup_ops *ops, - struct lxc_conf *conf, - bool do_devices) + struct lxc_conf *conf, + bool do_devices) { - bool bret; - - bret = __cg_legacy_setup_limits(ops, &conf->cgroup, do_devices); - if (!bret) + if (!__cg_legacy_setup_limits(ops, &conf->cgroup, do_devices)) return false; return __cg_unified_setup_limits(ops, &conf->cgroup2);