mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-23 13:05:27 +00:00
domain_conf: make virDomainDiskSetBlockIOTune() void
This function always returns zero, so it might as well be void. Signed-off-by: Matt Coleman <matt@datto.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
82966a0104
commit
8f80014299
@ -31963,10 +31963,8 @@ virDomainDefVcpuOrderClear(virDomainDefPtr def)
|
||||
*
|
||||
* Set the block I/O tune settings from @info on the @disk, but error out early
|
||||
* in case of any error. That is to make sure nothing will fail half-way.
|
||||
*
|
||||
* Returns: 0 on success, -1 otherwise
|
||||
*/
|
||||
int
|
||||
void
|
||||
virDomainDiskSetBlockIOTune(virDomainDiskDefPtr disk,
|
||||
virDomainBlockIoTuneInfo *info)
|
||||
{
|
||||
@ -31977,8 +31975,6 @@ virDomainDiskSetBlockIOTune(virDomainDiskDefPtr disk,
|
||||
VIR_FREE(disk->blkdeviotune.group_name);
|
||||
disk->blkdeviotune = *info;
|
||||
disk->blkdeviotune.group_name = g_steal_pointer(&tmp_group);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -3804,8 +3804,8 @@ virDomainGetBlkioParametersAssignFromDef(virDomainDefPtr def,
|
||||
int *nparams,
|
||||
int maxparams);
|
||||
|
||||
int virDomainDiskSetBlockIOTune(virDomainDiskDefPtr disk,
|
||||
virDomainBlockIoTuneInfo *info);
|
||||
void virDomainDiskSetBlockIOTune(virDomainDiskDefPtr disk,
|
||||
virDomainBlockIoTuneInfo *info);
|
||||
|
||||
bool
|
||||
virDomainNetTypeSharesHostView(const virDomainNetDef *net);
|
||||
|
@ -16324,8 +16324,7 @@ qemuDomainSetBlockIoTune(virDomainPtr dom,
|
||||
goto endjob;
|
||||
ret = -1;
|
||||
|
||||
if (virDomainDiskSetBlockIOTune(disk, &info) < 0)
|
||||
goto endjob;
|
||||
virDomainDiskSetBlockIOTune(disk, &info);
|
||||
|
||||
qemuDomainSetGroupBlockIoTune(def, &info);
|
||||
|
||||
@ -16356,8 +16355,7 @@ qemuDomainSetBlockIoTune(virDomainPtr dom,
|
||||
if (qemuDomainCheckBlockIoTuneReset(conf_disk, &conf_info) < 0)
|
||||
goto endjob;
|
||||
|
||||
if (virDomainDiskSetBlockIOTune(conf_disk, &conf_info) < 0)
|
||||
goto endjob;
|
||||
virDomainDiskSetBlockIOTune(conf_disk, &conf_info);
|
||||
|
||||
qemuDomainSetGroupBlockIoTune(persistentDef, &conf_info);
|
||||
|
||||
|
@ -3832,8 +3832,7 @@ testDomainSetBlockIoTune(virDomainPtr dom,
|
||||
|
||||
#undef TEST_BLOCK_IOTUNE_MAX_CHECK
|
||||
|
||||
if (virDomainDiskSetBlockIOTune(conf_disk, &info) < 0)
|
||||
goto cleanup;
|
||||
virDomainDiskSetBlockIOTune(conf_disk, &info);
|
||||
info.group_name = NULL;
|
||||
|
||||
ret = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user