diff options
author | Ilias Apalodimas <ilias.apalodimas@linaro.org> | 2024-04-23 08:38:06 +0300 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2024-05-01 07:39:27 +0200 |
commit | 5025d029a95ff3865875684160da08d2f40e5133 (patch) | |
tree | 5158f05dfed75f2b54abaf4033b84a92e4d94465 | |
parent | 5ab82b10f02296232a14fde6dab1803559ab62e5 (diff) | |
download | u-boot-5025d029a95ff3865875684160da08d2f40e5133.zip u-boot-5025d029a95ff3865875684160da08d2f40e5133.tar.gz u-boot-5025d029a95ff3865875684160da08d2f40e5133.tar.bz2 |
efi_loader: address coverity report 492766 for dead code
The check of the return code is already done a few lines above.
Although it doesn't cause any functional issues, remove the superfluous
checks
Addresses-Coverity-ID: 492766 Control flow issues (DEADCODE)
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
-rw-r--r-- | lib/efi_loader/efi_var_mem.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/efi_loader/efi_var_mem.c b/lib/efi_loader/efi_var_mem.c index 940ab66..139e16a 100644 --- a/lib/efi_loader/efi_var_mem.c +++ b/lib/efi_loader/efi_var_mem.c @@ -232,8 +232,6 @@ efi_status_t efi_var_mem_init(void) efi_var_buf->length = (uintptr_t)efi_var_buf->var - (uintptr_t)efi_var_buf; - if (ret != EFI_SUCCESS) - return ret; ret = efi_create_event(EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE, TPL_CALLBACK, efi_var_mem_notify_virtual_address_map, NULL, NULL, &event); |