[PATCH 03/10] doRemoteOpen(): Rename 'failed' label to 'error'

Peter Krempa pkrempa at redhat.com
Mon Feb 6 15:13:41 UTC 2023


On Mon, Feb 06, 2023 at 10:16:51 +0100, Michal Privoznik wrote:
> Our own coding style suggest not inventing new names for labels
> and stick with 'cleanup' (when the path is used in both,
> successful and unsuccessful returns), or 'error' (when the code
> below the label is used only upon error). Well, 'failed' label
> falls into the latter category. Rename it then.
> 
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> ---
>  src/remote/remote_driver.c | 62 +++++++++++++++++++-------------------
>  1 file changed, 31 insertions(+), 31 deletions(-)

Reviewed-by: Peter Krempa <pkrempa at redhat.com>


More information about the libvir-list mailing list