Remove a unncessary check.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6352 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qwang12 2008-10-31 07:50:56 +00:00
parent 63766b6de4
commit 383ad6791f
1 changed files with 1 additions and 3 deletions

View File

@ -305,9 +305,7 @@ BdsLibRegisterNewOption (
// Got the option, so just return
//
FreePool (OptionPtr);
if (TempOptionPtr != NULL) {
FreePool (TempOptionPtr);
}
FreePool (TempOptionPtr);
return EFI_SUCCESS;
} else {
//