summaryrefslogtreecommitdiff
path: root/BaseTools/Source/Python/Workspace/BuildClassObject.py
diff options
context:
space:
mode:
authorMingjie Shen <shen497@purdue.edu>2026-09-01 05:50:58 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2026-09-04 01:15:47 +0300
commit9d46dc9fa036b701f637f5e4ccc659d4999b90fd (patch)
tree8da4e13fb273d9d0be4120f4df7f8f9b4495fe75 /BaseTools/Source/Python/Workspace/BuildClassObject.py
parent150f01d3098ba655f32b510a62eb51ffacac8e4e (diff)
downloadedk2-9d46dc9fa036b701f637f5e4ccc659d4999b90fd.tar.xz
ShellPkg/UefiShellBcfg: Exit early if ShellCommandLineParse() failed
Jump to the Done cleanup label when `ShellCommandLineParse()` fails, and move the success path (unchanged) out of the now-unnecessary else block. This patch does not introduce behavioral change. Generated by the following Coccinelle semantic patch: ```smpl @@ identifier status, problem, ret, hii; statement S; @@ if (EFI_ERROR (status)) { if ((status == EFI_VOLUME_CORRUPTED) && (problem != NULL)) { ShellPrintHiiDefaultEx (STRING_TOKEN (STR_GEN_PROBLEM), hii, ..., problem); FreePool (problem); ret = SHELL_INVALID_PARAMETER; } else { ASSERT (FALSE); } + goto Done; } - else { ... - } ... Done: S ``` Signed-off-by: Mingjie Shen <shen497@purdue.edu>
Diffstat (limited to 'BaseTools/Source/Python/Workspace/BuildClassObject.py')
0 files changed, 0 insertions, 0 deletions