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

Peter Krempa pkrempa at redhat.com
Mon Jun 6 10:10:32 UTC 2016


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




More information about the libvir-list mailing list