[libvirt] [PATCH 11/11] qemuBuildControllersCommandLine: use i instead of j as the counter
Ján Tomko
jtomko at redhat.com
Wed Jan 16 07:56:16 UTC 2019
Now that the nested loop is gone.
Signed-off-by: Ján Tomko <jtomko at redhat.com>
---
src/qemu/qemu_command.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
index 214d4068e9..093a528bec 100644
--- a/src/qemu/qemu_command.c
+++ b/src/qemu/qemu_command.c
@@ -3180,7 +3180,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,
@@ -3209,8 +3209,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;
}
--
2.20.1
More information about the libvir-list
mailing list