MdeModulePkg/HiiDatabaseDxe:remove dead code block

As the if statement outside has confirmed that
BlockData->Name == NULL, so the if statement inside
is always false.

Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Hao A Wu <hao.a.wu@intel.com>
Cc: Dandan Bi <dandan.bi@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Signed-off-by: Wenyi Xie <xiewenyi2@huawei.com>
Reviewed-by: Dandan Bi <dandan.bi@intel.com>
This commit is contained in:
Wenyi Xie 2021-08-26 09:16:03 +08:00 committed by mergify[bot]
parent e3ee8c8dbd
commit b6bc203375
1 changed files with 0 additions and 3 deletions

View File

@ -2871,9 +2871,6 @@ ParseIfrData (
//
if ((BlockData->Name == NULL) && ((BlockData->Offset + BlockData->Width) > VarStorageData->Size)) {
Status = EFI_INVALID_PARAMETER;
if (BlockData->Name != NULL) {
FreePool (BlockData->Name);
}
FreePool (BlockData);
goto Done;
}