Blame SOURCES/0009-Get-rid-of-an-invalid-comparison.patch

5fb29d
From 0521d90c3d081bc45aad4815698884ae32e35041 Mon Sep 17 00:00:00 2001
5fb29d
From: Peter Jones <pjones@redhat.com>
5fb29d
Date: Wed, 10 Sep 2014 16:02:58 -0400
5fb29d
Subject: [PATCH 09/18] Get rid of an invalid comparison.
5fb29d
5fb29d
Covscan.
5fb29d
5fb29d
Signed-off-by: Peter Jones <pjones@redhat.com>
5fb29d
---
5fb29d
 src/efibootmgr/efibootmgr.c | 2 +-
5fb29d
 1 file changed, 1 insertion(+), 1 deletion(-)
5fb29d
5fb29d
diff --git a/src/efibootmgr/efibootmgr.c b/src/efibootmgr/efibootmgr.c
5fb29d
index 88a4ef7..5280180 100644
5fb29d
--- a/src/efibootmgr/efibootmgr.c
5fb29d
+++ b/src/efibootmgr/efibootmgr.c
5fb29d
@@ -1008,7 +1008,7 @@ parse_opts(int argc, char **argv)
5fb29d
 			break;
5fb29d
 		case 'b':
5fb29d
 			rc = sscanf(optarg, "%X", &num);
5fb29d
-			if (rc == 1 && num >= 0 && num < 0xffff) {
5fb29d
+			if (rc == 1 && num < 0xffff) {
5fb29d
 				opts.bootnum = num;
5fb29d
 			} else {
5fb29d
 				fprintf (stderr,"invalid hex value %s\n",optarg);
5fb29d
-- 
5fb29d
1.9.3
5fb29d