mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
UefiCpuPkg: RiscV64: CpuTimerLib: Fix coding style error
Fixed coding style reported by Ecc tool. Signed-off-by: Tuan Phan <tuan.phan@oss.qualcomm.com>
This commit is contained in:
parent
d48465508b
commit
04bf52c212
1 changed files with 6 additions and 11 deletions
|
|
@ -159,6 +159,9 @@ GetPerformanceCounterProperties (
|
|||
CONST EFI_GUID SecHobDataGuid = RISCV_SEC_HANDOFF_HOB_GUID;
|
||||
UINT64 TimeBase;
|
||||
CONST VOID *FdtBase;
|
||||
INT32 Node;
|
||||
INT32 Len;
|
||||
CONST FDT_PROPERTY *Prop;
|
||||
|
||||
if (StartValue != NULL) {
|
||||
*StartValue = 0;
|
||||
|
|
@ -194,22 +197,14 @@ GetPerformanceCounterProperties (
|
|||
//
|
||||
// /cpus node
|
||||
//
|
||||
INT32 Node = FdtSubnodeOffsetNameLen (
|
||||
FdtBase,
|
||||
0,
|
||||
"cpus",
|
||||
sizeof ("cpus") - 1
|
||||
);
|
||||
|
||||
Node = FdtSubnodeOffsetNameLen (FdtBase, 0, "cpus", (INT32)AsciiStrLen ("cpus"));
|
||||
ASSERT (Node >= 0);
|
||||
|
||||
//
|
||||
// timebase-frequency property
|
||||
//
|
||||
INT32 Len;
|
||||
CONST FDT_PROPERTY *Prop =
|
||||
FdtGetProperty (FdtBase, Node, "timebase-frequency", &Len);
|
||||
|
||||
Len = 0;
|
||||
Prop = FdtGetProperty (FdtBase, Node, "timebase-frequency", &Len);
|
||||
ASSERT (Prop != NULL && Len == sizeof (UINT32));
|
||||
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue