edk2/ShellPkg/Library/UefiShellDebug1CommandsLib/Edit
Pierre Gondois d23559e847 ShellPkg/UefiShellDebug1: Return if ShellCommandLineParse() failed (2/4)
This patch aims to help breaking down the long functions present in
the ShellPkg and reduce complexity/nested code and conditions.

Return directly if ShellCommandLineParse() returned an error Status.
In such case, the "Package" that should be allocated by
ShellCommandLineParse() is already freed in:
ShellCommandLineParse()
\-ShellCommandLineParseEx()
\-InternalCommandLineParse()
so there is no need to free it with ShellCommandLineFreeVarList().

To avoid having one large commit updating all the UefiShellDebug1
commands, only update these files:
- Edit/Edit.c
- EfiCompress.c
- EfiDecompress.c
- HexEdit/HexEdit.c
- LoadPciRom.c

No functional change should be induced by this patch.

Signed-off-by: Pierre Gondois <pierre.gondois@arm.com>
2026-08-04 10:35:35 +03:00
..
Edit.c ShellPkg/UefiShellDebug1: Return if ShellCommandLineParse() failed (2/4) 2026-08-04 10:35:35 +03:00
FileBuffer.c ShellPkg: Prevent memcpy intrinsics in VS22 (17.14.2) 2025-06-08 18:07:56 +00:00
FileBuffer.h ShellPkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
MainTextEditor.c ShellPkg: Use the newly introduced ShellPrintHiiDefaultEx() alias 2025-10-01 10:02:57 +02:00
MainTextEditor.h ShellPkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
Misc.c ShellPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Misc.h ShellPkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
TextEditor.h ShellPkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
TextEditorTypes.h ShellPkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
TextEditStrings.uni ShellPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:25 -07:00