summaryrefslogtreecommitdiff
path: root/MdeModulePkg
diff options
context:
space:
mode:
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-10-31 07:50:56 +0000
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-10-31 07:50:56 +0000
commit383ad6791f50c1b44192054ea2975e3dd32e3baa (patch)
tree94294d354f8dc9eecac9fabd9bd6e2dad8fbf404 /MdeModulePkg
parent63766b6de42426dd33cdfedb2b940730d847abd9 (diff)
downloadedk2-platforms-383ad6791f50c1b44192054ea2975e3dd32e3baa.tar.xz
Remove a unncessary check.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6352 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg')
-rw-r--r--MdeModulePkg/Library/GenericBdsLib/BdsMisc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/MdeModulePkg/Library/GenericBdsLib/BdsMisc.c b/MdeModulePkg/Library/GenericBdsLib/BdsMisc.c
index 3136341162..6b3fa618e1 100644
--- a/MdeModulePkg/Library/GenericBdsLib/BdsMisc.c
+++ b/MdeModulePkg/Library/GenericBdsLib/BdsMisc.c
@@ -305,9 +305,7 @@ BdsLibRegisterNewOption (
// Got the option, so just return
//
FreePool (OptionPtr);
- if (TempOptionPtr != NULL) {
- FreePool (TempOptionPtr);
- }
+ FreePool (TempOptionPtr);
return EFI_SUCCESS;
} else {
//