]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: command: join two adjacent conditions
authorJán Tomko <jtomko@redhat.com>
Wed, 11 Jan 2023 15:56:54 +0000 (16:56 +0100)
committerJán Tomko <jtomko@redhat.com>
Thu, 20 Apr 2023 15:28:33 +0000 (17:28 +0200)
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
src/qemu/qemu_command.c

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