diff options
author | eric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-02-10 09:56:23 +0000 |
---|---|---|
committer | eric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-02-10 09:56:23 +0000 |
commit | fbbb42115cf217ff4b799000aeb563437574f477 (patch) | |
tree | 0e201fe33f10630508b0a43fbc8e43c9d02d4b23 /MdeModulePkg/Core/Dxe/Gcd | |
parent | a935a0d8b72cca68f5ccfe0e0779c9f5ea2492e7 (diff) | |
download | edk2-fbbb42115cf217ff4b799000aeb563437574f477.zip edk2-fbbb42115cf217ff4b799000aeb563437574f477.tar.gz edk2-fbbb42115cf217ff4b799000aeb563437574f477.tar.bz2 |
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/Gcd')
-rw-r--r-- | MdeModulePkg/Core/Dxe/Gcd/Gcd.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/MdeModulePkg/Core/Dxe/Gcd/Gcd.c b/MdeModulePkg/Core/Dxe/Gcd/Gcd.c index c9aad1c..8081fef 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;
|