diff options
author | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-12-24 01:50:59 +0000 |
---|---|---|
committer | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-12-24 01:50:59 +0000 |
commit | ef9273606bb3d9b966646ba00e8dd819372bd054 (patch) | |
tree | 55f01203563390286f0103f1ebec4646fa762645 /MdeModulePkg/Universal/BdsDxe | |
parent | 8986b8cda6df094fa905cde1ace821551597f9fe (diff) | |
download | edk2-platforms-ef9273606bb3d9b966646ba00e8dd819372bd054.tar.xz |
Refine function comments for BdsDxe module.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7111 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/BdsDxe')
-rw-r--r-- | MdeModulePkg/Universal/BdsDxe/BootMaint/BootOption.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/MdeModulePkg/Universal/BdsDxe/BootMaint/BootOption.c b/MdeModulePkg/Universal/BdsDxe/BootMaint/BootOption.c index 85ba61707f..acfd548e5e 100644 --- a/MdeModulePkg/Universal/BdsDxe/BootMaint/BootOption.c +++ b/MdeModulePkg/Universal/BdsDxe/BootMaint/BootOption.c @@ -20,12 +20,12 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #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.
@retval NULL If failed to create the menu.
- @return The menu.
+ @return the new menu entry.
**/
BM_MENU_ENTRY *
@@ -77,12 +77,12 @@ BOpt_CreateMenuEntry ( // Create new menu entry
//
MenuEntry = AllocateZeroPool (sizeof (BM_MENU_ENTRY));
- if (NULL == MenuEntry) {
- return MenuEntry;
+ if (MenuEntry == NULL) {
+ return NULL;
}
MenuEntry->VariableContext = AllocateZeroPool (ContextSize);
- if (NULL == MenuEntry->VariableContext) {
+ if (MenuEntry->VariableContext == NULL) {
FreePool (MenuEntry);
return NULL;
}
@@ -170,7 +170,7 @@ BOpt_DestroyMenuEntry ( }
FreePool (MenuEntry->DisplayString);
- if (NULL != MenuEntry->HelpString) {
+ if (MenuEntry->HelpString != NULL) {
FreePool (MenuEntry->HelpString);
}
|