From ef9273606bb3d9b966646ba00e8dd819372bd054 Mon Sep 17 00:00:00 2001 From: klu2 Date: Wed, 24 Dec 2008 01:50:59 +0000 Subject: [PATCH] Refine function comments for BdsDxe module. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7111 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/BdsDxe/BootMaint/BootOption.c | 12 ++++++------ 1 file 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); } -- 2.39.2