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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



qemuExtTPMSetupCgroup declares pidfile but never uses it.

Signed-off-by: Ján Tomko <jtomko@xxxxxxxxxx>
---
 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





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux