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:
@ -297,7 +297,7 @@ DumpUint64 (
|
|||||||
Val = *(UINT32*)(Ptr + sizeof (UINT32));
|
Val = *(UINT32*)(Ptr + sizeof (UINT32));
|
||||||
|
|
||||||
Val <<= 32;
|
Val <<= 32;
|
||||||
Val |= *(UINT32*)Ptr;
|
Val |= (UINT64)*(UINT32*)Ptr;
|
||||||
|
|
||||||
Print (Format, Val);
|
Print (Format, Val);
|
||||||
}
|
}
|
||||||
|
@ -284,6 +284,7 @@ ConvertStrToAcpiSignature (
|
|||||||
UINT8 Index;
|
UINT8 Index;
|
||||||
CHAR8 Ptr[4];
|
CHAR8 Ptr[4];
|
||||||
|
|
||||||
|
ZeroMem (Ptr, sizeof (Ptr));
|
||||||
Index = 0;
|
Index = 0;
|
||||||
|
|
||||||
// Convert to Upper case and convert to ASCII
|
// Convert to Upper case and convert to ASCII
|
||||||
|
@ -118,7 +118,7 @@ UefiShellAcpiViewCommandLibConstructor (
|
|||||||
gShellAcpiViewHiiHandle = NULL;
|
gShellAcpiViewHiiHandle = NULL;
|
||||||
|
|
||||||
// Check Shell Profile Debug1 bit of the profiles mask
|
// Check Shell Profile Debug1 bit of the profiles mask
|
||||||
if ((FixedPcdGet8 (PcdShellProfileMask) & BIT1) == 0) {
|
if ((PcdGet8 (PcdShellProfileMask) & BIT1) == 0) {
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user