mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-30 08:07:59 +00:00
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>
This commit is contained in:
parent
95d18c5ed0
commit
1167e88ab8
1 changed files with 1 additions and 1 deletions
|
@ -2278,10 +2278,10 @@ efi_status_t eficonfig_delete_invalid_boot_option(struct eficonfig_media_boot_op
|
||||||
{
|
{
|
||||||
u32 i, j;
|
u32 i, j;
|
||||||
efi_uintn_t size;
|
efi_uintn_t size;
|
||||||
efi_status_t ret;
|
|
||||||
void *load_option;
|
void *load_option;
|
||||||
struct efi_load_option lo;
|
struct efi_load_option lo;
|
||||||
u16 varname[] = u"Boot####";
|
u16 varname[] = u"Boot####";
|
||||||
|
efi_status_t ret = EFI_SUCCESS;
|
||||||
|
|
||||||
for (i = 0; i <= 0xFFFF; i++) {
|
for (i = 0; i <= 0xFFFF; i++) {
|
||||||
efi_uintn_t tmp;
|
efi_uintn_t tmp;
|
||||||
|
|
Loading…
Add table
Reference in a new issue