summaryrefslogtreecommitdiff
path: root/errlog.c
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2017-09-28 12:23:17 -0400
committerPeter Jones <pmjones@gmail.com>2018-03-12 16:21:43 -0400
commit1c2376338d57c900fbc1c2fe6d9c30cfe20e44be (patch)
tree293bb98f7e683d2af3b1490bb2b8554c9ac52aa5 /errlog.c
parentee07a19d7ef3dc2e3fc0204aba4def95eeeadf95 (diff)
downloadefi-boot-shim-1c2376338d57c900fbc1c2fe6d9c30cfe20e44be.tar.gz
efi-boot-shim-1c2376338d57c900fbc1c2fe6d9c30cfe20e44be.zip
shim: Use EFI_ERROR() instead of comparing to EFI_SUCCESS everywhere.
Also consistently name our status variable "efi_status" unless there's a good reason not to, such as already having another one of those. Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'errlog.c')
-rw-r--r--errlog.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/errlog.c b/errlog.c
index fd789335..b67c23df 100644
--- a/errlog.c
+++ b/errlog.c
@@ -54,13 +54,13 @@ EFI_STATUS
LogError(const char *file, int line, const char *func, CHAR16 *fmt, ...)
{
va_list args;
- EFI_STATUS status;
+ EFI_STATUS efi_status;
va_start(args, fmt);
- status = VLogError(file, line, func, fmt, args);
+ efi_status = VLogError(file, line, func, fmt, args);
va_end(args);
- return status;
+ return efi_status;
}
VOID