mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 23:07:44 +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,
|
||||
virQEMUCapsPtr qemuCaps)
|
||||
{
|
||||
size_t j;
|
||||
size_t i;
|
||||
int contOrder[] = {
|
||||
/*
|
||||
* List of controller types that we add commandline args for,
|
||||
@ -3237,8 +3237,8 @@ qemuBuildControllersCommandLine(virCommandPtr cmd,
|
||||
};
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user