Skip to content

Commit

Permalink
MdeModulePkg/HiiDatabaseDxe:remove dead code block
Browse files Browse the repository at this point in the history
As the if statement outside has confirmed that
BlockData->Name == NULL, so the if statement inside
is always false.

Cc: Jian J Wang <[email protected]>
Cc: Hao A Wu <[email protected]>
Cc: Dandan Bi <[email protected]>
Cc: Eric Dong <[email protected]>
Signed-off-by: Wenyi Xie <[email protected]>
Reviewed-by: Dandan Bi <[email protected]>
  • Loading branch information
Wenyi Xie authored and mergify[bot] committed Sep 2, 2021
1 parent e3ee8c8 commit b6bc203
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions MdeModulePkg/Universal/HiiDatabaseDxe/ConfigRouting.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b6bc203

Please sign in to comment.