aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorHeinrich Schuchardt2022-11-10 12:19:30 +0100
committerHeinrich Schuchardt2022-11-16 08:34:06 +0100
commit3d595ac5f5cbcf4db793caee035ab28304f41457 (patch)
treea06b2864f7b9bd6b4be555deba8f600c9163a42e /cmd
parent00ec77f2b030aa9982363b0d6a6cc6b56a64a0af (diff)
cmd: remove superfluous if in eficonfig_edit_boot_option
Goto for an immediately succeeding label is superfluous. Fixes: 87d791423ac6 ("eficonfig: menu-driven addition of UEFI boot option") Addresses-Coverity: 376202 ("Identical code for different branches") Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/eficonfig.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/cmd/eficonfig.c b/cmd/eficonfig.c
index 2595dd95631..0dc6e7b01e4 100644
--- a/cmd/eficonfig.c
+++ b/cmd/eficonfig.c
@@ -1527,8 +1527,6 @@ static efi_status_t eficonfig_edit_boot_option(u16 *varname, struct eficonfig_bo
}
ret = eficonfig_set_boot_option(varname, final_dp, final_dp_size, bo->description, tmp);
- if (ret != EFI_SUCCESS)
- goto out;
out:
free(tmp);
free(bo->optional_data);