summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/efi/efi_stub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/efi/efi_stub.c b/lib/efi/efi_stub.c
index 2e8d409d31a..205aa199472 100644
--- a/lib/efi/efi_stub.c
+++ b/lib/efi/efi_stub.c
@@ -182,7 +182,7 @@ static int get_codeseg32(void)
<< 16;
base <<= 12; /* 4KB granularity */
limit <<= 12;
- if ((desc & GDT_PRESENT) && (desc && GDT_NOTSYS) &&
+ if ((desc & GDT_PRESENT) && (desc & GDT_NOTSYS) &&
!(desc & GDT_LONG) && (desc & GDT_4KB) &&
(desc & GDT_32BIT) && (desc & GDT_CODE) &&
CONFIG_SYS_TEXT_BASE > base &&