]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Remove a unncessary check.
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 31 Oct 2008 07:50:56 +0000 (07:50 +0000)
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 31 Oct 2008 07:50:56 +0000 (07:50 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6352 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Library/GenericBdsLib/BdsMisc.c

index 3136341162cd74ae81edb1e24a055c5d5d409334..6b3fa618e17939edd1cfc775d9c3eeebace69604 100644 (file)
@@ -305,9 +305,7 @@ BdsLibRegisterNewOption (
         // Got the option, so just return\r
         //\r
         FreePool (OptionPtr);\r
-        if (TempOptionPtr != NULL) {\r
-          FreePool (TempOptionPtr);\r
-        }\r
+        FreePool (TempOptionPtr);\r
         return EFI_SUCCESS;\r
       } else {\r
         //\r