diff options
Diffstat (limited to 'src/storage')
-rw-r--r-- | src/storage/storage_backend_scsi.c | 2 | ||||
-rw-r--r-- | src/storage/storage_backend_sheepdog.c | 2 | ||||
-rw-r--r-- | src/storage/storage_driver.c | 4 | ||||
-rw-r--r-- | src/storage/storage_util.c | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/src/storage/storage_backend_scsi.c b/src/storage/storage_backend_scsi.c index fd243776f8..98d9d92ac5 100644 --- a/src/storage/storage_backend_scsi.c +++ b/src/storage/storage_backend_scsi.c @@ -184,7 +184,7 @@ getAdapterName(virStorageAdapterPtr adapter) unique_id))) return NULL; } else { - ignore_value(VIR_STRDUP(name, scsi_host->name)); + name = g_strdup(scsi_host->name); } } else if (adapter->type == VIR_STORAGE_ADAPTER_TYPE_FC_HOST) { virStorageAdapterFCHostPtr fchost = &adapter->data.fchost; diff --git a/src/storage/storage_backend_sheepdog.c b/src/storage/storage_backend_sheepdog.c index f03c5c7e05..443c224222 100644 --- a/src/storage/storage_backend_sheepdog.c +++ b/src/storage/storage_backend_sheepdog.c @@ -343,7 +343,7 @@ virStorageBackendSheepdogRefreshVol(virStoragePoolObjPtr pool, return -1; VIR_FREE(vol->target.path); - ignore_value(VIR_STRDUP(vol->target.path, vol->name)); + vol->target.path = g_strdup(vol->name); return 0; } diff --git a/src/storage/storage_driver.c b/src/storage/storage_driver.c index da09d7de13..ac215c7036 100644 --- a/src/storage/storage_driver.c +++ b/src/storage/storage_driver.c @@ -1657,7 +1657,7 @@ storageVolLookupByPathCallback(virStoragePoolObjPtr obj, case VIR_STORAGE_POOL_SHEEPDOG: case VIR_STORAGE_POOL_ZFS: case VIR_STORAGE_POOL_LAST: - ignore_value(VIR_STRDUP(stable_path, data->path)); + stable_path = g_strdup(data->path); break; } @@ -2760,7 +2760,7 @@ storageVolGetPath(virStorageVolPtr vol) voldef) < 0) goto cleanup; - ignore_value(VIR_STRDUP(ret, voldef->target.path)); + ret = g_strdup(voldef->target.path); cleanup: virStoragePoolObjEndAPI(&obj); diff --git a/src/storage/storage_util.c b/src/storage/storage_util.c index 410d412ef1..a4c8a5e971 100644 --- a/src/storage/storage_util.c +++ b/src/storage/storage_util.c @@ -1986,7 +1986,7 @@ virStorageBackendStablePath(virStoragePoolObjPtr pool, * the original non-stable dev path */ - ignore_value(VIR_STRDUP(stablepath, devpath)); + stablepath = g_strdup(devpath); return stablepath; } @@ -3641,7 +3641,7 @@ virStorageBackendSCSISerial(const char *dev, if (rc == -2) return NULL; - ignore_value(VIR_STRDUP(serial, dev)); + serial = g_strdup(dev); return serial; } |