提交 36e7ce76 编写于 作者: M Michal Privoznik

storageVolLookupData: Drop conn struct member

Since its introduction in 5d5c732d it has been never used.
Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
上级 eb65cc50
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册