mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
efi_loader: do not cast return value in EFI_EXIT
UEFI API functions have different return types. Some return a value of type EFI_STATUS other don't. We therefore should not cast the return value of EFI_EXIT to another type than the expression passed to EFI_EXIT. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
a44bffcc95
commit
c81883dfce
1 changed files with 2 additions and 2 deletions
|
@ -33,9 +33,9 @@ const char *__efi_nesting_dec(void);
|
|||
* Exit the u-boot world back to UEFI:
|
||||
*/
|
||||
#define EFI_EXIT(ret) ({ \
|
||||
efi_status_t _r = ret; \
|
||||
typeof(ret) _r = ret; \
|
||||
debug("%sEFI: Exit: %s: %u\n", __efi_nesting_dec(), \
|
||||
__func__, (u32)(_r & ~EFI_ERROR_MASK)); \
|
||||
__func__, (u32)((uintptr_t) _r & ~EFI_ERROR_MASK)); \
|
||||
assert(__efi_exit_check()); \
|
||||
_r; \
|
||||
})
|
||||
|
|
Loading…
Add table
Reference in a new issue