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

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

 



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

Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
---
 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@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[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