mirror of https://github.com/acidanthera/audk.git
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:
parent
c1f032cd3a
commit
81038d50c9
|
@ -297,7 +297,7 @@ DumpUint64 (
|
|||
Val = *(UINT32*)(Ptr + sizeof (UINT32));
|
||||
|
||||
Val <<= 32;
|
||||
Val |= *(UINT32*)Ptr;
|
||||
Val |= (UINT64)*(UINT32*)Ptr;
|
||||
|
||||
Print (Format, Val);
|
||||
}
|
||||
|
|
|
@ -284,6 +284,7 @@ ConvertStrToAcpiSignature (
|
|||
UINT8 Index;
|
||||
CHAR8 Ptr[4];
|
||||
|
||||
ZeroMem (Ptr, sizeof (Ptr));
|
||||
Index = 0;
|
||||
|
||||
// Convert to Upper case and convert to ASCII
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue