libpayload: don't test for unsigned >= 0

Change-Id: Ibeaf6de9505bc6f1e7358a4cfc80228dff7ddb69
Signed-off-by: Patrick Georgi <patrick@georgi-clan.de>
Found-by: Coverity Scan
Reviewed-on: http://review.coreboot.org/7978
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
This commit is contained in:
Patrick Georgi 2014-12-29 20:41:37 +01:00 committed by Patrick Georgi
parent 3cb56e934f
commit ab639bffc7
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ static void corebootfb_update_cursor(void)
paint = CHARS[cursor_y * coreboot_video_console.columns + cursor_x]; 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); corebootfb_putchar(cursor_y, cursor_x, paint);
} }