[libvirt] [PATCH 2/2] storageDriverAutostart: Drop unused @conn

Michal Privoznik mprivozn at redhat.com
Fri Apr 6 12:22:47 UTC 2018


This variable is not actually used in the function. Especially
after 31869efe2a8.

Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
---
 src/storage/storage_driver.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/storage/storage_driver.c b/src/storage/storage_driver.c
index 6ddead1b95..173b91b61b 100644
--- a/src/storage/storage_driver.c
+++ b/src/storage/storage_driver.c
@@ -218,13 +218,9 @@ storageDriverAutostartCallback(virStoragePoolObjPtr obj,
 static void
 storageDriverAutostart(void)
 {
-    virConnectPtr conn = NULL;
-
     virStoragePoolObjListForEach(driver->pools,
                                  storageDriverAutostartCallback,
                                  NULL);
-
-    virObjectUnref(conn);
 }
 
 /**
-- 
2.16.1




More information about the libvir-list mailing list