summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Core/Dxe
diff options
context:
space:
mode:
authoreric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>2009-02-10 09:56:23 +0000
committereric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>2009-02-10 09:56:23 +0000
commitfbbb42115cf217ff4b799000aeb563437574f477 (patch)
tree0e201fe33f10630508b0a43fbc8e43c9d02d4b23 /MdeModulePkg/Core/Dxe
parenta935a0d8b72cca68f5ccfe0e0779c9f5ea2492e7 (diff)
downloadedk2-platforms-fbbb42115cf217ff4b799000aeb563437574f477.tar.xz
clean K8.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7492 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Core/Dxe')
-rw-r--r--MdeModulePkg/Core/Dxe/Gcd/Gcd.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/MdeModulePkg/Core/Dxe/Gcd/Gcd.c b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c
index c9aad1ce3a..8081fef1b0 100644
--- a/MdeModulePkg/Core/Dxe/Gcd/Gcd.c
+++ b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c
@@ -583,10 +583,11 @@ CoreConvertSpace (
if ((Operation & GCD_MEMORY_SPACE_OPERATION) != 0) {
CoreAcquireGcdMemoryLock ();
Map = &mGcdMemorySpaceMap;
- }
- if ((Operation & GCD_IO_SPACE_OPERATION) != 0) {
+ } else if ((Operation & GCD_IO_SPACE_OPERATION) != 0) {
CoreAcquireGcdIoLock ();
Map = &mGcdIoSpaceMap;
+ } else {
+ ASSERT (FALSE);
}
//
@@ -893,10 +894,11 @@ CoreAllocateSpace (
if ((Operation & GCD_MEMORY_SPACE_OPERATION) != 0) {
CoreAcquireGcdMemoryLock ();
Map = &mGcdMemorySpaceMap;
- }
- if ((Operation & GCD_IO_SPACE_OPERATION) != 0) {
+ } else if ((Operation & GCD_IO_SPACE_OPERATION) != 0) {
CoreAcquireGcdIoLock ();
Map = &mGcdIoSpaceMap;
+ } else {
+ ASSERT (FALSE);
}
Found = FALSE;