From 9facc22ebec43dc1e57d997f1814df9c3f9400d1 Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Tue, 26 Sep 2017 18:16:26 -0400 Subject: Fix some "if (x < 0)" tests where x is UINTN. Obviously, these are not correct. Most of them are just useless; one can be changed to a more useful test. Signed-off-by: Peter Jones --- lib/console.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib') diff --git a/lib/console.c b/lib/console.c index 358c78bf..b70749dd 100644 --- a/lib/console.c +++ b/lib/console.c @@ -201,8 +201,6 @@ console_select(CHAR16 *title[], CHAR16* selectors[], unsigned int start) selector_max_cols = len; } - if (start < 0) - start = 0; if (start >= selector_lines) start = selector_lines - 1; -- cgit v1.2.3