Now that the nested loop is gone.
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Cole Robinson <crobinso@redhat.com>
const virDomainDef *def,
virQEMUCapsPtr qemuCaps)
{
- size_t j;
+ size_t i;
int contOrder[] = {
/*
* List of controller types that we add commandline args for,
};
int ret = -1;
- for (j = 0; j < ARRAY_CARDINALITY(contOrder); j++) {
- if (qemuBuildControllersByTypeCommandLine(cmd, def, qemuCaps, contOrder[j]) < 0)
+ for (i = 0; i < ARRAY_CARDINALITY(contOrder); i++) {
+ if (qemuBuildControllersByTypeCommandLine(cmd, def, qemuCaps, contOrder[i]) < 0)
goto cleanup;
}