[libvirt PATCH 2/4] qemu: command: join two adjacent conditions

Ján Tomko posted 4 patches 2 years, 9 months ago
[libvirt PATCH 2/4] qemu: command: join two adjacent conditions
Posted by Ján Tomko 2 years, 9 months ago
Signed-off-by: Ján Tomko <jtomko@redhat.com>
---
 src/qemu/qemu_command.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
index 4ca93bf3dc..0afb038954 100644
--- a/src/qemu/qemu_command.c
+++ b/src/qemu/qemu_command.c
@@ -8482,9 +8482,7 @@ qemuBuildInterfaceConnect(virDomainObj *vm,
                                           vm->def, tapfd[i]) < 0)
                 return -1;
         }
-    }
 
-    if (vhostfd) {
         if (qemuInterfaceOpenVhostNet(vm, net) < 0)
             return -1;
     }
-- 
2.39.2