mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04: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:
parent
d85a9c6e23
commit
37db80097d
1 changed files with 3 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue