Skip to content

Commit

Permalink
cgfsng: move increment out of branch
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Oct 22, 2018
1 parent 00e5ca1 commit edae86e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lxc/cgroups/cgfsng.c
Expand Up @@ -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)
Expand Down

0 comments on commit edae86e

Please sign in to comment.