Re: [libvirt] [PATCH 5/5] qemu: snapshot: Simplify error paths

2014-09-08 Thread Peter Krempa
On 09/06/14 21:52, Eric Blake wrote: On 09/03/2014 07:53 AM, Peter Krempa wrote: Return failure right away when the domain object can't be looked up instead of jumping to cleanup. This allows to remove the condition before unlocking the domain object. --- src/qemu/qemu_driver.c | 65

Re: [libvirt] [PATCH 5/5] qemu: snapshot: Simplify error paths

2014-09-06 Thread Eric Blake
On 09/03/2014 07:53 AM, Peter Krempa wrote: Return failure right away when the domain object can't be looked up instead of jumping to cleanup. This allows to remove the condition before unlocking the domain object. --- src/qemu/qemu_driver.c | 65

[libvirt] [PATCH 5/5] qemu: snapshot: Simplify error paths

2014-09-03 Thread Peter Krempa
Return failure right away when the domain object can't be looked up instead of jumping to cleanup. This allows to remove the condition before unlocking the domain object. --- src/qemu/qemu_driver.c | 65 -- 1 file changed, 26 insertions(+), 39