From: Christian Brauner Date: Sat, 20 Oct 2018 09:13:59 +0000 (+0200) Subject: cgfsng: move increment out of branch X-Git-Tag: lxc-3.1.0~29^2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edae86e922420b11a55932eb446b4cbeed48c9f1;p=thirdparty%2Flxc.git cgfsng: move increment out of branch Signed-off-by: Christian Brauner --- diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c index 1a722ae2f..43403ce42 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -2133,7 +2133,8 @@ static int __cg_unified_attach(const struct hierarchy *h, const char *name, if (errno != EBUSY) goto on_error; - } while (++idx > 0 && idx < 1000); + idx++; + } while (idx < 1000); on_success: if (idx < 1000)