From 383ad6791f50c1b44192054ea2975e3dd32e3baa Mon Sep 17 00:00:00 2001 From: qwang12 Date: Fri, 31 Oct 2008 07:50:56 +0000 Subject: Remove a unncessary check. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6352 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Library/GenericBdsLib/BdsMisc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'MdeModulePkg') diff --git a/MdeModulePkg/Library/GenericBdsLib/BdsMisc.c b/MdeModulePkg/Library/GenericBdsLib/BdsMisc.c index 3136341..6b3fa61 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 { // -- cgit v1.1