mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-27 07:22:07 +03:00
qemu: Drop 'ret' from qemuBuildIOMMUCommandLine()
Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
dfa631b55a
commit
9775f48f84
@ -6930,7 +6930,6 @@ qemuBuildIOMMUCommandLine(virCommandPtr cmd,
|
||||
{
|
||||
virBuffer opts = VIR_BUFFER_INITIALIZER;
|
||||
const virDomainIOMMUDef *iommu = def->iommu;
|
||||
int ret = -1;
|
||||
|
||||
if (!iommu)
|
||||
return 0;
|
||||
@ -6971,9 +6970,8 @@ qemuBuildIOMMUCommandLine(virCommandPtr cmd,
|
||||
virCommandAddArg(cmd, "-device");
|
||||
virCommandAddArgBuffer(cmd, &opts);
|
||||
|
||||
ret = 0;
|
||||
virBufferFreeAndReset(&opts);
|
||||
return ret;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user