diff options
author | Masahisa Kojima <masahisa.kojima@linaro.org> | 2022-11-14 19:00:47 +0900 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2022-11-16 08:34:06 +0100 |
commit | 1167e88ab876febdc1c567e877a6d81996a566a1 (patch) | |
tree | 8b80a360aceb4cfe8dcbbb8c8fac6a6f0a4954fb /cmd | |
parent | 95d18c5ed0ca952947214c619140e68b33005a4c (diff) | |
download | u-boot-1167e88ab876febdc1c567e877a6d81996a566a1.tar.gz |
eficonfig: fix missing variable initialization
The 'ret' variable must be initialized before use
in eficonfig_delete_invalid_boot_option().
Fixes: c416f1c0bc ("bootmenu: add removable media entries")
Addresses-Coverity: 376207 ("Uninitialized variables")
Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/eficonfig.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/eficonfig.c b/cmd/eficonfig.c index 0dc6e7b01e..2b143894d3 100644 --- a/cmd/eficonfig.c +++ b/cmd/eficonfig.c @@ -2278,10 +2278,10 @@ efi_status_t eficonfig_delete_invalid_boot_option(struct eficonfig_media_boot_op { u32 i, j; efi_uintn_t size; - efi_status_t ret; void *load_option; struct efi_load_option lo; u16 varname[] = u"Boot####"; + efi_status_t ret = EFI_SUCCESS; for (i = 0; i <= 0xFFFF; i++) { efi_uintn_t tmp; |