[libvirt PATCH 1/4] qemu: tpm: remove unused pidfile variable

Ján Tomko jtomko at redhat.com
Sun Feb 2 20:01:44 UTC 2020


qemuExtTPMSetupCgroup declares pidfile but never uses it.

Signed-off-by: Ján Tomko <jtomko at redhat.com>
---
 src/qemu/qemu_tpm.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/qemu/qemu_tpm.c b/src/qemu/qemu_tpm.c
index 6741373583..385f4c74f7 100644
--- a/src/qemu/qemu_tpm.c
+++ b/src/qemu/qemu_tpm.c
@@ -913,7 +913,6 @@ qemuExtTPMSetupCgroup(virQEMUDriverPtr driver,
                       virCgroupPtr cgroup)
 {
     virQEMUDriverConfigPtr cfg = virQEMUDriverGetConfig(driver);
-    char *pidfile = NULL;
     char *shortName = NULL;
     int ret = -1, rc;
     pid_t pid;
@@ -940,7 +939,6 @@ qemuExtTPMSetupCgroup(virQEMUDriverPtr driver,
     ret = 0;
 
  cleanup:
-    VIR_FREE(pidfile);
     VIR_FREE(shortName);
     virObjectUnref(cfg);
 
-- 
2.19.2




More information about the libvir-list mailing list