]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_loader: fix incorrect use of EFI_EXIT()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 29 Jun 2020 09:49:58 +0000 (11:49 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 29 Jun 2020 09:56:10 +0000 (11:56 +0200)
efi_get_variable_common() does not use EFI_ENTRY(). So we should not use
EFI_EXIT() either.

Fixes: 767f6eeb01d3 ("efi_loader: variable: support variable authentication")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_variable.c

index 6271dbcf41f47a91843f030d374d86b4b5b11aa6..c262cb5972b6d1836329b3eb4286ebf12ad031a4 100644 (file)
@@ -606,7 +606,7 @@ static efi_status_t efi_get_variable_common(u16 *variable_name,
        u32 attr;
 
        if (!variable_name || !vendor || !data_size)
-               return EFI_EXIT(EFI_INVALID_PARAMETER);
+               return EFI_INVALID_PARAMETER;
 
        ret = efi_to_native(&native_name, variable_name, vendor);
        if (ret)