cgfsng: move increment out of branch

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner 2018-10-20 11:13:59 +02:00
parent 00e5ca1384
commit edae86e922
No known key found for this signature in database
GPG Key ID: 8EB056D53EECB12D

View File

@ -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)