StandaloneMmPkg Core: Treat no DEPEX as TRUE

Treat no DEPEX as TRUE, then the DEPEX section can be
eliminated if a driver can be assured to have no
DEPEX needed.

Signed-off-by: Star Zeng <star.zeng@intel.com>
This commit is contained in:
Star Zeng 2026-01-27 23:43:59 +08:00 committed by mergify[bot]
parent d85a9c6e23
commit 37db80097d

View file

@ -182,12 +182,10 @@ MmIsSchedulable (
if (DriverEntry->Depex == NULL) {
//
// A NULL Depex means that the MM driver is not built correctly.
// All MM drivers must have a valid depex expression.
// If there is no DEPEX, assume the module can be executed
//
DEBUG ((DEBUG_DISPATCH, " RESULT = FALSE (Depex is empty)\n"));
ASSERT (FALSE);
return FALSE;
DEBUG ((DEBUG_DISPATCH, " RESULT = TRUE (No DEPEX)\n"));
return TRUE;
}
//