ShellPkg/acpi: Code cleanup to pass static code checker

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Hao Wu <Hao.a.wu@intel.com>
This commit is contained in:
Ruiyu Ni 2018-08-03 10:46:34 +08:00
parent c1f032cd3a
commit 81038d50c9
3 changed files with 3 additions and 2 deletions

View File

@ -297,7 +297,7 @@ DumpUint64 (
Val = *(UINT32*)(Ptr + sizeof (UINT32));
Val <<= 32;
Val |= *(UINT32*)Ptr;
Val |= (UINT64)*(UINT32*)Ptr;
Print (Format, Val);
}

View File

@ -284,6 +284,7 @@ ConvertStrToAcpiSignature (
UINT8 Index;
CHAR8 Ptr[4];
ZeroMem (Ptr, sizeof (Ptr));
Index = 0;
// Convert to Upper case and convert to ASCII

View File

@ -118,7 +118,7 @@ UefiShellAcpiViewCommandLibConstructor (
gShellAcpiViewHiiHandle = NULL;
// Check Shell Profile Debug1 bit of the profiles mask
if ((FixedPcdGet8 (PcdShellProfileMask) & BIT1) == 0) {
if ((PcdGet8 (PcdShellProfileMask) & BIT1) == 0) {
return EFI_SUCCESS;
}