Add ASSERT statement and initialize local variable to make code more readable.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Qiu Shumin <shumin.qiu@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18689
6f19259b-4bc3-4df7-8a09-
765794883524
EFI_DEVICE_PATH_PROTOCOL *DevPath;\r
UINTN Size;\r
EFI_STATUS CalleeStatusCode;\r
+\r
+ CalleeStatusCode = EFI_SUCCESS;\r
\r
if ((PcdGet8(PcdShellSupportLevel) < 1)) {\r
return (EFI_UNSUPPORTED);\r
}\r
\r
RemoteFilePath = ShellCommandLineGetRawValue (CheckPackage, 2);\r
+ ASSERT(RemoteFilePath != NULL);\r
AsciiRemoteFilePath = AllocatePool (\r
(StrLen (RemoteFilePath) + 1) * sizeof (CHAR8)\r
);\r