There was an assumption that this API would never fail. That is not true and the return value is checked just a few lines later.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14951
6f19259b-4bc3-4df7-8a09-
765794883524
if (!Quiet) {\r
Status = ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN(STR_RM_LOG_DELETE_CONF), gShellLevel2HiiHandle, Node->FullName);\r
Status = ShellPromptForResponse(ShellPromptResponseTypeYesNo, NULL, (VOID**)&Resp);\r
- ASSERT_EFI_ERROR(Status);\r
ASSERT(Resp != NULL);\r
if (EFI_ERROR(Status) || *Resp != ShellPromptResponseYes) {\r
SHELL_FREE_NON_NULL(Resp);\r