Re: [PATCH] Clean up usage of 'ret' variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]