mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-29 00:55:22 +00:00
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:
parent
77b780f581
commit
a2e51ac038
@ -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 ||
|
||||
|
Loading…
Reference in New Issue
Block a user