qemu: Wrap controllers code into dummy loop

which just re-indent code and prepare it for next patch.
(cherry picked from commit 77b93dbc3e)
This commit is contained in:
Michal Privoznik 2012-11-05 11:42:51 +01:00 committed by Cole Robinson
parent 77b780f581
commit a2e51ac038

View File

@ -4456,7 +4456,7 @@ qemuBuildCommandLine(virConnectPtr conn,
virDomainSnapshotObjPtr snapshot,
enum virNetDevVPortProfileOp vmop)
{
int i;
int i, j;
struct utsname ut;
int disableKQEMU = 0;
int enableKQEMU = 0;
@ -5051,6 +5051,7 @@ qemuBuildCommandLine(virConnectPtr conn,
}
if (qemuCapsGet(caps, QEMU_CAPS_DEVICE)) {
for (j = 0; j < 1; j++) {
for (i = 0; i < def->ncontrollers; i++) {
virDomainControllerDefPtr cont = def->controllers[i];
@ -5109,6 +5110,7 @@ qemuBuildCommandLine(virConnectPtr conn,
}
}
}
}
if (usbcontroller == 0)
virCommandAddArg(cmd, "-usb");
@ -5581,7 +5583,6 @@ qemuBuildCommandLine(virConnectPtr conn,
virDomainSmartcardDefPtr smartcard = def->smartcards[0];
char *devstr;
virBuffer opt = VIR_BUFFER_INITIALIZER;
int j;
const char *database;
if (def->nsmartcards > 1 ||