diff options
Diffstat (limited to 'src/boot/efi/secure-boot.c')
-rw-r--r-- | src/boot/efi/secure-boot.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/boot/efi/secure-boot.c b/src/boot/efi/secure-boot.c index 23505d5ae8..c1c1db10b0 100644 --- a/src/boot/efi/secure-boot.c +++ b/src/boot/efi/secure-boot.c @@ -10,7 +10,7 @@ BOOLEAN secure_boot_enabled(void) { err = efivar_get_boolean_u8(EFI_GLOBAL_GUID, L"SecureBoot", &secure); - return !EFI_ERROR(err) && secure; + return err == EFI_SUCCESS && secure; } SecureBootMode secure_boot_mode(void) { @@ -18,7 +18,7 @@ SecureBootMode secure_boot_mode(void) { EFI_STATUS err; err = efivar_get_boolean_u8(EFI_GLOBAL_GUID, L"SecureBoot", &secure); - if (EFI_ERROR(err)) + if (err != EFI_SUCCESS) return SECURE_BOOT_UNSUPPORTED; /* We can assume FALSE for all these if they are abscent (AuditMode and |