From: Michal Privoznik Date: Fri, 6 Apr 2018 12:02:28 +0000 (+0200) Subject: storageDriverAutostart: Drop unused @conn X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=7b4964479d72366ff43aff4aa65e18f1b2619f02;p=libvirt.git storageDriverAutostart: Drop unused @conn This variable is not actually used in the function. Especially after 31869efe2a8. Signed-off-by: Michal Privoznik --- 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); } /**