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

5fb29d
From 79c14e7a87eee655ae27427c560903e78e2c09a3 Mon Sep 17 00:00:00 2001
5fb29d
From: Peter Jones <pjones@redhat.com>
5fb29d
Date: Wed, 10 Sep 2014 16:24:03 -0400
5fb29d
Subject: [PATCH 14/18] 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
5fb29d
index 31807a9..f9c25e0 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
-- 
5fb29d
1.9.3
5fb29d