From fbbb42115cf217ff4b799000aeb563437574f477 Mon Sep 17 00:00:00 2001 From: eric_tian Date: Tue, 10 Feb 2009 09:56:23 +0000 Subject: clean K8. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7492 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Core/Dxe/Gcd/Gcd.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'MdeModulePkg/Core') 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; -- cgit v1.2.3