Blame SOURCES/0015-Make-a-free-non-conditional-since-the-condition-can-.patch

38ab4d
From b18de3f385e732861de7425a20c77376813a554e Mon Sep 17 00:00:00 2001
5fb29d
From: Peter Jones <pjones@redhat.com>
5fb29d
Date: Wed, 10 Sep 2014 16:24:03 -0400
38ab4d
Subject: [PATCH 15/31] Make a free non-conditional since the condition can't
5fb29d
 be ture.
5fb29d
5fb29d
Covscan again.  I wonder if it'll complain about this.
5fb29d
5fb29d
Signed-off-by: Peter Jones <pjones@redhat.com>
5fb29d
---
5fb29d
 src/efibootmgr/efibootmgr.c | 3 +--
5fb29d
 1 file changed, 1 insertion(+), 2 deletions(-)
5fb29d
5fb29d
diff --git a/src/efibootmgr/efibootmgr.c b/src/efibootmgr/efibootmgr.c
38ab4d
index 4ffb90e..d73c6aa 100644
5fb29d
--- a/src/efibootmgr/efibootmgr.c
5fb29d
+++ b/src/efibootmgr/efibootmgr.c
5fb29d
@@ -463,8 +463,7 @@ read_boot_u16(const char *name)
5fb29d
 	}
5fb29d
 
5fb29d
 	rc = data[0];
5fb29d
-	if (data != NULL)
5fb29d
-		free(data);
5fb29d
+	free(data);
5fb29d
 	return rc;
5fb29d
 }
5fb29d
 
5fb29d
-- 
38ab4d
2.7.4
5fb29d