Skip to content

Commit

Permalink
command drvcfg ASSERT
Browse files Browse the repository at this point in the history
REF: tianocore/edk2#10626

Issue command drvcfg directly, system halt

Signed-off-by: "Zhu, Cliff" <[email protected]>
Cc: Liming Gao <[email protected]>
Reviewed-by: Liming Gao <[email protected]>
  • Loading branch information
zhurui22 authored and mergify[bot] committed Jan 24, 2025
1 parent eda58c1 commit 3330973
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions ShellPkg/Library/UefiShellDriver1CommandsLib/DrvCfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1370,12 +1370,6 @@ ShellCommandRunDrvCfg (
FileName = NULL;
}

if (FileName == NULL) {
ASSERT (FileName != NULL);
ShellStatus = SHELL_INVALID_PARAMETER;
goto Done;
}

if (InFromFile && EFI_ERROR (ShellFileExists (FileName))) {
ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_GEN_FIND_FAIL), gShellDriver1HiiHandle, L"drvcfg", FileName);
ShellStatus = SHELL_INVALID_PARAMETER;
Expand Down

0 comments on commit 3330973

Please sign in to comment.