[libvirt] [PATCH v3 08/28] virLockManagerLockDaemonAddResource: Switch to cleanup label rather than error

John Ferlan jferlan at redhat.com
Thu Aug 30 18:39:28 UTC 2018



On 08/27/2018 04:08 AM, Michal Privoznik wrote:
> This will help in future expansions of the code when it is be
> harder to track if @newName and/or @newLockspace were already
> allocated or not and thus whether it is safe to 'return' or we
> need to 'goto error'. By using the 'cleanup' label those two
> cases merge into a single one.
> 
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> ---
>  src/locking/lock_driver_lockd.c | 44 ++++++++++++++++++++---------------------
>  1 file changed, 22 insertions(+), 22 deletions(-)
> 

Reviewed-by: John Ferlan <jferlan at redhat.com>

John




More information about the libvir-list mailing list