storageVolLookupData: Drop conn struct member

Since its introduction in 5d5c732d748d64 it has been never used.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Michal Privoznik 2018-04-06 14:01:02 +02:00
parent eb65cc500b
commit 36e7ce761b
2 changed files with 4 additions and 6 deletions

View File

@ -1520,7 +1520,6 @@ storageVolLookupByName(virStoragePoolPtr pool,
struct storageVolLookupData {
virConnectPtr conn;
const char *key;
char *cleanpath;
const char *path;
@ -1547,7 +1546,7 @@ storageVolLookupByKey(virConnectPtr conn,
virStoragePoolObjPtr obj;
virStoragePoolDefPtr def;
struct storageVolLookupData data = {
.conn = conn, .key = key, .voldef = NULL };
.key = key, .voldef = NULL };
virStorageVolPtr vol = NULL;
if ((obj = virStoragePoolObjListSearch(driver->pools,
@ -1627,7 +1626,7 @@ storageVolLookupByPath(virConnectPtr conn,
virStoragePoolObjPtr obj;
virStoragePoolDefPtr def;
struct storageVolLookupData data = {
.conn = conn, .path = path, .voldef = NULL };
.path = path, .voldef = NULL };
virStorageVolPtr vol = NULL;
if (!(data.cleanpath = virFileSanitizePath(path)))

View File

@ -5026,7 +5026,6 @@ testStorageVolLookupByName(virStoragePoolPtr pool,
struct storageVolLookupData {
virConnectPtr conn;
const char *key;
const char *path;
virStorageVolDefPtr voldef;
@ -5053,7 +5052,7 @@ testStorageVolLookupByKey(virConnectPtr conn,
virStoragePoolObjPtr obj;
virStoragePoolDefPtr def;
struct storageVolLookupData data = {
.conn = conn, .key = key, .voldef = NULL };
.key = key, .voldef = NULL };
virStorageVolPtr vol = NULL;
testDriverLock(privconn);
@ -5097,7 +5096,7 @@ testStorageVolLookupByPath(virConnectPtr conn,
virStoragePoolObjPtr obj;
virStoragePoolDefPtr def;
struct storageVolLookupData data = {
.conn = conn, .path = path, .voldef = NULL };
.path = path, .voldef = NULL };
virStorageVolPtr vol = NULL;
testDriverLock(privconn);