Refine function comments for BdsDxe module.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7111 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
klu2
2008-12-24 01:50:59 +00:00
parent 8986b8cda6
commit ef9273606b

View File

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