]> xenbits.xensource.com Git - libvirt.git/commitdiff
Revert "qemu_passt: Actually use @logfd"
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 1 Aug 2023 14:18:47 +0000 (16:18 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 2 Aug 2023 15:23:05 +0000 (17:23 +0200)
This reverts commit 83686f1eea1a001a37a92f2c054ffb2689c43a40.

This is needed only so that the next revert is clean.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
src/qemu/qemu_passt.c

index 3679bf75fc0225648436c655599705d730bc11eb..25b22d8ad96299f950b9fc9aaa3162fcafd7ad0e 100644 (file)
@@ -204,9 +204,9 @@ qemuPasstStart(virDomainObj *vm,
         /* The logFile location is not restricted to a per-domain directory. It
          * can be anywhere. Pre-create it as passt may not have enough perms to
          * do so. */
-        if ((logfd = qemuDomainOpenFile(cfg, vm->def, net->backend.logFile,
-                                        O_CREAT | O_TRUNC | O_APPEND | O_RDWR,
-                                        &needUnlink)) < 0) {
+        if (qemuDomainOpenFile(cfg, vm->def, net->backend.logFile,
+                               O_CREAT | O_TRUNC | O_APPEND | O_RDWR,
+                               &needUnlink) < 0) {
             return -1;
         }