mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
DynamicTablesPkg/RiscV: Fix unused variables warnings
Either use the variables or get rid of them. Signed-off-by: Sunil V L <sunilvl@oss.qualcomm.com>
This commit is contained in:
parent
c5e42e7942
commit
f539e44fe4
2 changed files with 10 additions and 4 deletions
|
|
@ -503,6 +503,11 @@ AddIsaStringNodes (
|
|||
IsaLength,
|
||||
NodeList->IsaString
|
||||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
ASSERT (0);
|
||||
return Status;
|
||||
}
|
||||
|
||||
IsaStringNode = (EFI_ACPI_6_6_RHCT_ISA_STRING_NODE *)((CHAR8 *)IsaStringNode + NodeLength);
|
||||
NodeList++;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -945,6 +945,11 @@ PlicAplicInfoParser (
|
|||
);
|
||||
}
|
||||
|
||||
if (EFI_ERROR (Status)) {
|
||||
ASSERT (0);
|
||||
return Status;
|
||||
}
|
||||
|
||||
Id++;
|
||||
}
|
||||
|
||||
|
|
@ -1095,7 +1100,6 @@ ImsicGetInfo (
|
|||
CONST UINT64 *Prop;
|
||||
INT32 Len;
|
||||
INT32 NumPhandle;
|
||||
UINTN NumImsicBase;
|
||||
|
||||
if (ImsicInfo == NULL) {
|
||||
ASSERT (0);
|
||||
|
|
@ -1172,7 +1176,6 @@ ImsicGetInfo (
|
|||
return EFI_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
NumImsicBase = (Len / sizeof (UINT32)) / 4;
|
||||
if (ImsicInfo->HartIndexBits == 0) {
|
||||
Len = NumPhandle;
|
||||
while (Len > 0) {
|
||||
|
|
@ -1286,14 +1289,12 @@ RiscVIntcInfoParser (
|
|||
{
|
||||
CM_OBJ_DESCRIPTOR *NewCmObjDesc;
|
||||
EFI_STATUS Status;
|
||||
VOID *Fdt;
|
||||
|
||||
if (FdtParserHandle == NULL) {
|
||||
ASSERT (0);
|
||||
return EFI_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
Fdt = FdtParserHandle->Fdt;
|
||||
NewCmObjDesc = NULL;
|
||||
|
||||
// Parse the "cpus" nodes and its children "cpu" nodes,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue