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

Signed-off-by: Michal Privoznik <mpriv...@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

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to