aboutsummaryrefslogtreecommitdiff
path: root/arch/i386/boot/video-bios.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/i386/boot/video-bios.c')
-rw-r--r--arch/i386/boot/video-bios.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/i386/boot/video-bios.c b/arch/i386/boot/video-bios.c
index 68e65d95cdf..ed0672a8187 100644
--- a/arch/i386/boot/video-bios.c
+++ b/arch/i386/boot/video-bios.c
@@ -79,7 +79,7 @@ static int bios_probe(void)
video_bios.modes = GET_HEAP(struct mode_info, 0);
for (mode = 0x14; mode <= 0x7f; mode++) {
- if (heap_free() < sizeof(struct mode_info))
+ if (!heap_free(sizeof(struct mode_info)))
break;
if (mode_defined(VIDEO_FIRST_BIOS+mode))