mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-09 06:25:19 +00:00
qemu: remove unused function return value
qemuBuildPMPCIRootHotplugCommandLine() returns 0 unconditionally. There is no failure scenario at present. So clean up the code by removing integer return from the function and also remove the failure check conditional from the function call. Also fix indentation for the above function call while at it. Signed-off-by: Ani Sinha <ani@anisinha.ca> Reviewed-by: Laine Stump <laine@redhat.com>
This commit is contained in:
parent
d89fd6d93d
commit
54cf221b55
@ -3177,9 +3177,9 @@ qemuBuildSkipController(const virDomainControllerDef *controller,
|
||||
return false;
|
||||
}
|
||||
|
||||
static int
|
||||
static void
|
||||
qemuBuildPMPCIRootHotplugCommandLine(virCommand *cmd,
|
||||
const virDomainControllerDef *controller)
|
||||
const virDomainControllerDef *controller)
|
||||
{
|
||||
if (controller->type == VIR_DOMAIN_CONTROLLER_TYPE_PCI &&
|
||||
controller->model == VIR_DOMAIN_CONTROLLER_MODEL_PCI_ROOT &&
|
||||
@ -3189,7 +3189,7 @@ qemuBuildPMPCIRootHotplugCommandLine(virCommand *cmd,
|
||||
virCommandAddArgFormat(cmd, "PIIX4_PM.acpi-root-pci-hotplug=%s",
|
||||
virTristateSwitchTypeToString(controller->opts.pciopts.hotplug));
|
||||
}
|
||||
return 0;
|
||||
return;
|
||||
}
|
||||
|
||||
static int
|
||||
@ -3207,8 +3207,7 @@ qemuBuildControllersByTypeCommandLine(virCommand *cmd,
|
||||
if (cont->type != type)
|
||||
continue;
|
||||
|
||||
if (qemuBuildPMPCIRootHotplugCommandLine(cmd, cont))
|
||||
continue;
|
||||
qemuBuildPMPCIRootHotplugCommandLine(cmd, cont);
|
||||
|
||||
if (qemuBuildSkipController(cont, def))
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user