summaryrefslogtreecommitdiff
path: root/apps/modelist.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/modelist.c')
-rw-r--r--apps/modelist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/modelist.c b/apps/modelist.c
index 26892e1..13219b7 100644
--- a/apps/modelist.c
+++ b/apps/modelist.c
@@ -22,7 +22,7 @@ print_modes(EFI_GRAPHICS_OUTPUT_PROTOCOL *gop)
UINTN SizeOfInfo;
rc = uefi_call_wrapper(gop->QueryMode, 4, gop, i, &SizeOfInfo,
&info);
- if (EFI_ERROR(rc) && rc == EFI_NOT_STARTED) {
+ if (rc == EFI_NOT_STARTED) {
Print(L"gop->QueryMode() returned %r\n", rc);
Print(L"Trying to start GOP with SetMode().\n");
rc = uefi_call_wrapper(gop->SetMode, 2, gop,