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