mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-24 13:35:17 +00:00
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:
parent
eb65cc500b
commit
36e7ce761b
@ -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)))
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user