1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-25 01:34:11 +03:00

domain_conf: make virDomainDiskSourceFormatNetwork() 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:
Matt Coleman 2020-11-05 22:32:45 -05:00 committed by Michal Privoznik
parent 695cdc0736
commit 97914d039d

View File

@ -25317,7 +25317,7 @@ virDomainDiskSourceFormatNetworkCookies(virBufferPtr buf,
}
static int
static void
virDomainDiskSourceFormatNetwork(virBufferPtr attrBuf,
virBufferPtr childBuf,
virStorageSourcePtr src,
@ -25375,8 +25375,6 @@ virDomainDiskSourceFormatNetwork(virBufferPtr attrBuf,
if (src->timeout)
virBufferAsprintf(childBuf, "<timeout seconds='%llu'/>\n", src->timeout);
return 0;
}
@ -25488,9 +25486,7 @@ virDomainDiskSourceFormat(virBufferPtr buf,
break;
case VIR_STORAGE_TYPE_NETWORK:
if (virDomainDiskSourceFormatNetwork(&attrBuf, &childBuf,
src, flags) < 0)
return -1;
virDomainDiskSourceFormatNetwork(&attrBuf, &childBuf, src, flags);
break;
case VIR_STORAGE_TYPE_VOLUME: