From 9994bee5f20865a3cc6464b7222054ae2ff75efb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1n=20Tomko?= Date: Sat, 1 Feb 2020 00:07:44 +0100 Subject: [PATCH] qemu: tpm: remove unused pidfile variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit qemuExtTPMSetupCgroup declares pidfile but never uses it. Signed-off-by: Ján Tomko Reviewed-by: Peter Krempa --- 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);