mirror of
https://github.com/Dasharo/edk2-upstream.git
synced 2026-06-13 19:16:19 -07:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user