[libvirt] [PATCH v3 3/8] storage: Rework ret logic in storageBackendUpdateVolTargetInfo

Ján Tomko jtomko at redhat.com
Tue Feb 12 15:38:39 UTC 2019


On Tue, Feb 12, 2019 at 09:19:01AM -0500, John Ferlan wrote:
>Rather than overload @ret with trying serve multiple purposes,
>let's initialize @ret to -1 and introduce an @rc function return
>value that can be used for functions that may return -1 or -2
>and only override @ret when rc < 0.
>
>Signed-off-by: John Ferlan <jferlan at redhat.com>
>---
> src/storage/storage_util.c | 30 ++++++++++++++++--------------
> 1 file changed, 16 insertions(+), 14 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190212/73d7cc3c/attachment-0001.sig>


More information about the libvir-list mailing list