summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
26442d1)
Reordered the asserts to first check if the pointer is valid
before de-referencing the pointer.
Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
Reviewed-by: Alexei Fedorov <Alexei.Fedorov@arm.com>
UINTN Index;\r
\r
ASSERT (This != NULL);\r
UINTN Index;\r
\r
ASSERT (This != NULL);\r
+ ASSERT (AcpiTableInfo != NULL);\r
+ ASSERT (CfgMgrProtocol != NULL);\r
ASSERT (AcpiTableInfo->TableGeneratorId == This->GeneratorID);\r
ASSERT (AcpiTableInfo->AcpiTableSignature == This->AcpiTableSignature);\r
ASSERT (AcpiTableInfo->TableGeneratorId == This->GeneratorID);\r
ASSERT (AcpiTableInfo->AcpiTableSignature == This->AcpiTableSignature);\r
- ASSERT (CfgMgrProtocol != NULL);\r
- ASSERT (AcpiTableInfo != NULL);\r
\r
if ((Table == NULL) ||\r
(*Table == NULL) ||\r
\r
if ((Table == NULL) ||\r
(*Table == NULL) ||\r