From 97ceef52fedfe85fbdf551e3826d97366c8ea67c Mon Sep 17 00:00:00 2001 From: Ken Lautner Date: Thu, 13 Jul 2023 12:29:18 -0700 Subject: [PATCH] Changed what the assert is checking --- UefiCpuPkg/CpuMpPei/CpuMpPei.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UefiCpuPkg/CpuMpPei/CpuMpPei.c b/UefiCpuPkg/CpuMpPei/CpuMpPei.c index d80c1b9eb1..ad1a11c0c0 100644 --- a/UefiCpuPkg/CpuMpPei/CpuMpPei.c +++ b/UefiCpuPkg/CpuMpPei/CpuMpPei.c @@ -544,7 +544,7 @@ InitializeMpExceptionStackSwitchHandlers ( // MU_CHANGE [BEGIN] - CodeQL change Status = MpInitLibGetNumberOfProcessors (&NumberOfProcessors, NULL); if (EFI_ERROR (Status)) { - ASSERT (NumberOfProcessors != NULL); + ASSERT_EFI_ERROR (Status); DEBUG ((DEBUG_ERROR, "%a - Failed to get number of processors. Status = %r\n", __FUNCTION__, Status)); return; }