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