Re: [PATCH 01/32] Initialize ret to -1 in nodeStateInitialize

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

 



On Mon, Jun 06, 2016 at 11:01:38 +0200, Ján Tomko wrote:
> Most of the code paths had to reset it to -1 and returning 0 was
> only possible if we made it to the end of the function.
> 
> Initialize it to -1 and only set it to 0 if we reach the end, as we do
> in most of libvirt code.
> ---
>  src/node_device/node_device_udev.c | 24 +++++++-----------------
>  1 file changed, 7 insertions(+), 17 deletions(-)

ACK

--
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]