qemu: command: join two adjacent conditions

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
Ján Tomko 2023-01-11 16:56:54 +01:00
parent 34c1715ed1
commit 53d43bf23f

View File

@ -8482,9 +8482,7 @@ qemuBuildInterfaceConnect(virDomainObj *vm,
vm->def, tapfd[i]) < 0)
return -1;
}
}
if (vhostfd) {
if (qemuInterfaceOpenVhostNet(vm, net) < 0)
return -1;
}