summaryrefslogtreecommitdiff
path: root/lib/console.c
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2017-09-26 18:16:26 -0400
committerPeter Jones <pmjones@gmail.com>2018-03-12 16:21:43 -0400
commit9facc22ebec43dc1e57d997f1814df9c3f9400d1 (patch)
tree7b2cb5b1294361cec6dae4778edb10fb779a19f0 /lib/console.c
parentb953468e91eac48d2e3817f18cd604e20f39c56b (diff)
downloadefi-boot-shim-9facc22ebec43dc1e57d997f1814df9c3f9400d1.tar.gz
efi-boot-shim-9facc22ebec43dc1e57d997f1814df9c3f9400d1.zip
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 <pjones@redhat.com>
Diffstat (limited to 'lib/console.c')
-rw-r--r--lib/console.c2
1 files changed, 0 insertions, 2 deletions
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;