cgfsng: move increment out of branch

parent 00e5ca13
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment