mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-05 16:33:50 +00:00
qemuBuildControllersCommandLine: use i instead of j as the counter
Now that the nested loop is gone. Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
a6d3357c8b
commit
49ec5769c9
@ -3208,7 +3208,7 @@ qemuBuildControllersCommandLine(virCommandPtr cmd,
|
|||||||
const virDomainDef *def,
|
const virDomainDef *def,
|
||||||
virQEMUCapsPtr qemuCaps)
|
virQEMUCapsPtr qemuCaps)
|
||||||
{
|
{
|
||||||
size_t j;
|
size_t i;
|
||||||
int contOrder[] = {
|
int contOrder[] = {
|
||||||
/*
|
/*
|
||||||
* List of controller types that we add commandline args for,
|
* List of controller types that we add commandline args for,
|
||||||
@ -3237,8 +3237,8 @@ qemuBuildControllersCommandLine(virCommandPtr cmd,
|
|||||||
};
|
};
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
|
|
||||||
for (j = 0; j < ARRAY_CARDINALITY(contOrder); j++) {
|
for (i = 0; i < ARRAY_CARDINALITY(contOrder); i++) {
|
||||||
if (qemuBuildControllersByTypeCommandLine(cmd, def, qemuCaps, contOrder[j]) < 0)
|
if (qemuBuildControllersByTypeCommandLine(cmd, def, qemuCaps, contOrder[i]) < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user