summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal
diff options
context:
space:
mode:
authorQiu Shumin <shumin.qiu@intel.com>2015-07-03 01:39:06 +0000
committershenshushi <shenshushi@Edk2>2015-07-03 01:39:06 +0000
commita645180666a7d5b79195f89df13dc8d96befecb6 (patch)
treeeda645dae36f321d603c13ee14ae17a925110ed3 /MdeModulePkg/Universal
parent2b7cb1d5c0f34692313b1a3f9df621f3e406bd05 (diff)
downloadedk2-platforms-a645180666a7d5b79195f89df13dc8d96befecb6.tar.xz
MdeModulePkg: Refine code to make it more readable.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin <shumin.qiu@intel.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17818 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal')
-rw-r--r--MdeModulePkg/Universal/PropertiesTableAttributesDxe/PropertiesTableAttributesDxe.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/PropertiesTableAttributesDxe/PropertiesTableAttributesDxe.c b/MdeModulePkg/Universal/PropertiesTableAttributesDxe/PropertiesTableAttributesDxe.c
index 6e5c4f8fcd..718c567346 100644
--- a/MdeModulePkg/Universal/PropertiesTableAttributesDxe/PropertiesTableAttributesDxe.c
+++ b/MdeModulePkg/Universal/PropertiesTableAttributesDxe/PropertiesTableAttributesDxe.c
@@ -130,6 +130,8 @@ UpdateMemoryAttributesDefault (
if (EFI_ERROR (Status)) {
goto Done;
}
+
+ ASSERT (PropertiesTable != NULL);
DEBUG ((EFI_D_INFO, "MemoryProtectionAttribute - 0x%016lx\n", PropertiesTable->MemoryProtectionAttribute));
if ((PropertiesTable->MemoryProtectionAttribute & EFI_PROPERTIES_RUNTIME_MEMORY_PROTECTION_NON_EXECUTABLE_PE_DATA) == 0) {