diff options
Diffstat (limited to 'MdeModulePkg/Core')
-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 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;
|