[PATCH (pushed)] qemuBuildChardevCommand: Remove unused variable

Peter Krempa posted 1 patch 8 months, 4 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/852380cef559e9cf08b651d59767a282cc9f99f2.1726744397.git.pkrempa@redhat.com
src/qemu/qemu_command.c | 1 -
1 file changed, 1 deletion(-)
[PATCH (pushed)] qemuBuildChardevCommand: Remove unused variable
Posted by Peter Krempa 8 months, 4 weeks ago
'charstr' is unused since 36d06a5637f, breaking the build on some
platforms. Remove it.

Fixes: 36d06a5637f
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
---
Build-breaker fix.

 src/qemu/qemu_command.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
index c2d65645c4..c20d033aea 100644
--- a/src/qemu/qemu_command.c
+++ b/src/qemu/qemu_command.c
@@ -1300,7 +1300,6 @@ qemuBuildChardevCommand(virCommand *cmd,
                         virQEMUCaps *qemuCaps)
 {
     qemuDomainChrSourcePrivate *chrSourcePriv = QEMU_DOMAIN_CHR_SOURCE_PRIVATE(dev);
-    g_autofree char *charstr = NULL;

     switch ((virDomainChrType) dev->type) {
     case VIR_DOMAIN_CHR_TYPE_TCP:
-- 
2.46.0