summaryrefslogtreecommitdiff
path: root/MdePkg/Library/DxeCoreHobLib/HobLib.c
diff options
context:
space:
mode:
Diffstat (limited to 'MdePkg/Library/DxeCoreHobLib/HobLib.c')
-rw-r--r--MdePkg/Library/DxeCoreHobLib/HobLib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/MdePkg/Library/DxeCoreHobLib/HobLib.c b/MdePkg/Library/DxeCoreHobLib/HobLib.c
index b941bde19c..ac4955149f 100644
--- a/MdePkg/Library/DxeCoreHobLib/HobLib.c
+++ b/MdePkg/Library/DxeCoreHobLib/HobLib.c
@@ -23,6 +23,7 @@
/**
Returns the pointer to the HOB list.
+ ASSERT() if the HOB list returned by GetHobList() is NULL.
This function returns the pointer to first HOB in the list.
@@ -35,6 +36,7 @@ GetHobList (
VOID
)
{
+ ASSERT (gHobList != NULL);
return gHobList;
}
@@ -185,7 +187,6 @@ GetBootModeHob (
EFI_HOB_HANDOFF_INFO_TABLE *HandOffHob;
HandOffHob = (EFI_HOB_HANDOFF_INFO_TABLE *) GetHobList ();
- ASSERT (HandOffHob != NULL);
return HandOffHob->BootMode;
}