edk2/ShellPkg/Library/UefiShellLevel1CommandsLib
Pierre Gondois e8036a9fbb ShellPkg/UefiShellLevel1: Return if ShellCommandLineParse() failed
This patch aims to help breaking down the long function 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().

No functional change should be induced by this patch.

Signed-off-by: Pierre Gondois <pierre.gondois@arm.com>
2026-04-30 12:14:33 +00:00
..
Exit.c ShellPkg/UefiShellLevel1: Return if ShellCommandLineParse() failed 2026-04-30 12:14:33 +00:00
For.c ShellPkg/For: Remove redundant null/empty checks on ArgSetWalker 2025-12-03 17:41:35 +00:00
Goto.c ShellPkg/UefiShellLevel1: Return if ShellCommandLineParse() failed 2026-04-30 12:14:33 +00:00
If.c ShellPkg: Use the newly introduced ShellPrintHiiDefaultEx() alias 2025-10-01 10:02:57 +02:00
Shift.c ShellPkg: Use the newly introduced ShellPrintHiiDefaultEx() alias 2025-10-01 10:02:57 +02:00
Stall.c ShellPkg/UefiShellLevel1: Return if ShellCommandLineParse() failed 2026-04-30 12:14:33 +00:00
UefiShellLevel1CommandsLib.c ShellPkg: Fix typos 2023-12-08 13:25:11 +00:00
UefiShellLevel1CommandsLib.h ShellPkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
UefiShellLevel1CommandsLib.inf ShellPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:25 -07:00
UefiShellLevel1CommandsLib.uni ShellPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:25 -07:00