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:
Sunil V L 2026-07-20 10:24:34 +05:30 committed by mergify[bot]
parent c5e42e7942
commit f539e44fe4
2 changed files with 10 additions and 4 deletions

View file

@ -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++;
}

View file

@ -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,