]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Refine function comments for BdsDxe module.
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 24 Dec 2008 01:50:59 +0000 (01:50 +0000)
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 24 Dec 2008 01:50:59 +0000 (01:50 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7111 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Universal/BdsDxe/BootMaint/BootOption.c

index 85ba61707faa4afa5cec427deeb1b196f6065098..acfd548e5ec478bfb9c56559dc9dc1d799d5f6b4 100644 (file)
@@ -20,12 +20,12 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include "BBSsupport.h"\r
 \r
 /**\r
-  Create a menu entry give a Menu type.\r
+  Create a menu entry by given menu type.\r
 \r
   @param MenuType        The Menu type to be created.\r
 \r
   @retval NULL           If failed to create the menu.\r
-  @return                The menu.\r
+  @return the new menu entry.\r
 \r
 **/\r
 BM_MENU_ENTRY *\r
@@ -77,12 +77,12 @@ BOpt_CreateMenuEntry (
   // Create new menu entry\r
   //\r
   MenuEntry = AllocateZeroPool (sizeof (BM_MENU_ENTRY));\r
-  if (NULL == MenuEntry) {\r
-    return MenuEntry;\r
+  if (MenuEntry == NULL) {\r
+    return NULL;\r
   }\r
 \r
   MenuEntry->VariableContext = AllocateZeroPool (ContextSize);\r
-  if (NULL == MenuEntry->VariableContext) {\r
+  if (MenuEntry->VariableContext == NULL) {\r
     FreePool (MenuEntry);\r
     return NULL;\r
   }\r
@@ -170,7 +170,7 @@ BOpt_DestroyMenuEntry (
   }\r
 \r
   FreePool (MenuEntry->DisplayString);\r
-  if (NULL != MenuEntry->HelpString) {\r
+  if (MenuEntry->HelpString != NULL) {\r
     FreePool (MenuEntry->HelpString);\r
   }\r
 \r