[libvirt] [PATCH] Clean up usage of 'ret' variable

John Ferlan jferlan at redhat.com
Wed Feb 10 22:20:02 UTC 2016



On 02/10/2016 11:19 AM, Ján Tomko wrote:
> 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 | 13 +++++--------
>  src/uml/uml_driver.c          |  5 ++---
>  2 files changed, 7 insertions(+), 11 deletions(-)
> 

ACK

John




More information about the libvir-list mailing list