]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Clean up usage of 'ret' variable
authorJán Tomko <jtomko@redhat.com>
Thu, 28 Jan 2016 16:44:33 +0000 (17:44 +0100)
committerJán Tomko <jtomko@redhat.com>
Thu, 11 Feb 2016 07:05:16 +0000 (08:05 +0100)
commit2542eb75bda389d1432eff53fd23a882908753e2
tree6e36312f2f149b4be0e4126b2ceab7e01259a2d4
parent28e5655de3e465cb0faaaf2b35aec7f1c31bbe52
Clean up usage of 'ret' variable

Do not store the return value of called functions in the same variable
as the (future) return value of the current function.

This makes tracking the origin of the value easier and reduces
the chance of introducing a new point of exit without resetting
the return value back to -1.
src/storage/storage_backend.c
src/uml/uml_driver.c