summaryrefslogtreecommitdiff
path: root/payloads
diff options
context:
space:
mode:
Diffstat (limited to 'payloads')
-rw-r--r--payloads/libpayload/drivers/video/corebootfb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/payloads/libpayload/drivers/video/corebootfb.c b/payloads/libpayload/drivers/video/corebootfb.c
index f0f1007312..969c601733 100644
--- a/payloads/libpayload/drivers/video/corebootfb.c
+++ b/payloads/libpayload/drivers/video/corebootfb.c
@@ -197,7 +197,7 @@ static void corebootfb_update_cursor(void)
paint = CHARS[cursor_y * coreboot_video_console.columns + cursor_x];
}
- if (cursor_y >= 0 && cursor_y < coreboot_video_console.rows)
+ if (cursor_y < coreboot_video_console.rows)
corebootfb_putchar(cursor_y, cursor_x, paint);
}