diff options
author | Rob Clark <robdclark@gmail.com> | 2017-07-27 08:04:17 -0400 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2017-07-28 09:15:45 +0200 |
commit | a095aadffa96f3814d5605792674a6d64951db51 (patch) | |
tree | 451ddae5da88f5ab5468442390254fb1ae310cb1 /lib/efi_loader | |
parent | 3f1aa97577b75ee2f4f13d2b9fbaf68ce89f42be (diff) | |
download | u-boot-a095aadffa96f3814d5605792674a6d64951db51.tar.gz u-boot-a095aadffa96f3814d5605792674a6d64951db51.tar.xz u-boot-a095aadffa96f3814d5605792674a6d64951db51.zip |
efi_loader: Add an EFI_CALL() macro
Rather than open-coding EFI_EXIT() + callback + EFI_ENTRY(), introduce
an EFI_CALL() macro. This makes callbacks into UEFI world (of which
there will be more in the future) more concise and easier to locate in
the code.
Signed-off-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'lib/efi_loader')
-rw-r--r-- | lib/efi_loader/efi_boottime.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c index 17c531a480..849d229821 100644 --- a/lib/efi_loader/efi_boottime.c +++ b/lib/efi_loader/efi_boottime.c @@ -120,9 +120,7 @@ void efi_signal_event(struct efi_event *event) return; event->signaled = 1; if (event->type & EVT_NOTIFY_SIGNAL) { - EFI_EXIT(EFI_SUCCESS); - event->notify_function(event, event->notify_context); - EFI_ENTRY("returning from notification function"); + EFI_CALL(event->notify_function(event, event->notify_context)); } } |