summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2008-12-31 08:05:18 +0000
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2008-12-31 08:05:18 +0000
commit9216450d1143056a50a5f916984a2d7faf590488 (patch)
treed75ab515c9428577c362c6914482812239e1c10e
parentc33add6776cbbe39f11df3343f6d73bb3a306163 (diff)
downloadedk2-platforms-9216450d1143056a50a5f916984a2d7faf590488.tar.xz
remove unnecessary check for NULL pointer.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7166 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--MdeModulePkg/Library/GenericBdsLib/BdsConsole.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/MdeModulePkg/Library/GenericBdsLib/BdsConsole.c b/MdeModulePkg/Library/GenericBdsLib/BdsConsole.c
index 3d7758d790..f826e6d95c 100644
--- a/MdeModulePkg/Library/GenericBdsLib/BdsConsole.c
+++ b/MdeModulePkg/Library/GenericBdsLib/BdsConsole.c
@@ -757,9 +757,8 @@ EnableQuietBoot (
&Width
);
if (EFI_ERROR (Status)) {
- if (ImageData != NULL) {
- FreePool (ImageData);
- }
+ FreePool (ImageData);
+
if (Badging == NULL) {
return Status;
} else {
@@ -854,9 +853,8 @@ EnableQuietBoot (
}
}
- if (ImageData != NULL) {
- FreePool (ImageData);
- }
+ FreePool (ImageData);
+
if (Blt != NULL) {
FreePool (Blt);
}