Bad late-night commit. We were doing a while loop for a reason. Just
initialize i to 0 before the while loop.
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
*/
static bool verify_final_subsystems(const char *cgroup_use)
{
- int i = 0;
+ int i;
bool dropped_any = false;
bool bret = false;
const char *cgroup_pattern;
if (!probe)
goto out;
- for (i = 0; i < nr_subsystems; i++) {
+ i = 0;
+ while (i < nr_subsystems) {
char *p = get_last_controller_in_list(subsystems[i]);
if (!subsys_is_writeable(p, probe)) {