From ee6519f8e2d8234bab74a249097436565f2c59aa Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 14 Aug 2023 14:09:25 +0200 Subject: [PATCH] debug: use just single label --- tools/toollib.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/tools/toollib.c b/tools/toollib.c index 9a41fcf70..9b4a6cd4b 100644 --- a/tools/toollib.c +++ b/tools/toollib.c @@ -5706,13 +5706,13 @@ int pvcreate_each_device(struct cmd_context *cmd, } if (!dm_list_empty(&pp->arg_fail) && must_use_all) - goto_out; + goto_bad; if (sigint_caught()) - goto_out; + goto_bad; if (prompt->abort_command) - goto_out; + goto_bad; } /* @@ -5725,7 +5725,7 @@ int pvcreate_each_device(struct cmd_context *cmd, if (!lockf_global_nonblock(cmd, "ex")) { log_error("Failed to reacquire global lock after prompt."); - goto_out; + goto bad; } do_command: @@ -5985,10 +5985,9 @@ do_command: cmd->command->name, pd->name); if (!dm_list_empty(&pp->arg_fail)) - goto_out; + goto_bad; return 1; bad: -out: return 0; } -- 2.43.5