mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-23 21:15:20 +00: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:
parent
695cdc0736
commit
97914d039d
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user