]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: do not cast return value in EFI_EXIT
authorxypron.glpk@gmx.de <xypron.glpk@gmx.de>
Thu, 17 Aug 2017 16:57:36 +0000 (18:57 +0200)
committerAlexander Graf <agraf@suse.de>
Fri, 18 Aug 2017 08:53:23 +0000 (10:53 +0200)
commitc81883dfce7360148c72922b93bfa16b399ee3ee
tree7c9702a278c25e56223e58cb4ed1c31c4dec0767
parenta44bffcc9557cf5f761a43bce44a59fa85feab2a
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>
include/efi_loader.h