]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu_domain: Drop unused variables from qemuDomainChrDefDropDefaultPath()
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 17 Aug 2023 15:43:54 +0000 (17:43 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 17 Aug 2023 15:43:54 +0000 (17:43 +0200)
In mu previous commits I've moved internals of
qemuDomainChrDefDropDefaultPath() into a separate function
(qemuDomainChrMatchDefaultPath()) but forgot to remove @buf and
@regexp variables which are now unused.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_domain.c

index d46516856ebc8290c13e7f5cc9e9bf3a42844483..f64836fbb175f7e8420d816ff601683246e9a874 100644 (file)
@@ -5452,8 +5452,6 @@ qemuDomainChrDefDropDefaultPath(virDomainChrDef *chr,
                                 virQEMUDriver *driver)
 {
     g_autoptr(virQEMUDriverConfig) cfg = NULL;
-    g_auto(virBuffer) buf = VIR_BUFFER_INITIALIZER;
-    g_autofree char *regexp = NULL;
 
     if (chr->deviceType != VIR_DOMAIN_CHR_DEVICE_TYPE_CHANNEL ||
         chr->targetType != VIR_DOMAIN_CHR_CHANNEL_TARGET_TYPE_VIRTIO ||