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:
parent
3cb56e934f
commit
ab639bffc7
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue