MdeModulePkg: Remove variables that are set, but not used

GCC 4.6 generates a warning when a variable is set,
but never used.

Signed-off-by: jljusten
Reviewed-by: lgao4
Reviewed-by: erictian
Reviewed-by: rsun3

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12617 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
jljusten
2011-10-31 15:58:05 +00:00
parent 310580cf8a
commit 7538d53684
15 changed files with 27 additions and 81 deletions

View File

@@ -1389,7 +1389,6 @@ AhciReset (
IN UINT64 Timeout
)
{
EFI_STATUS Status;
UINT32 Delay;
UINT32 Value;
@@ -1397,8 +1396,6 @@ AhciReset (
AhciOrReg (PciIo, EFI_AHCI_GHC_OFFSET, EFI_AHCI_GHC_RESET);
Status = EFI_TIMEOUT;
Delay = (UINT32) (DivU64x32(Timeout, 1000) + 1);
do {
@@ -2137,8 +2134,6 @@ AhciModeInitialization (
UINT32 Capability;
UINT8 MaxPortNumber;
UINT32 PortImplementBitMap;
UINT8 MaxCommandSlotNumber;
BOOLEAN Support64Bit;
EFI_AHCI_REGISTERS *AhciRegisters;
@@ -2178,9 +2173,7 @@ AhciModeInitialization (
//
// Get the number of command slots per port supported by this HBA.
//
MaxCommandSlotNumber = (UINT8) (((Capability & 0x1F00) >> 8) + 1);
MaxPortNumber = (UINT8) ((Capability & 0x1F) + 1);
Support64Bit = (BOOLEAN) (((Capability & EFI_AHCI_CAP_S64A) != 0) ? TRUE : FALSE);
//
// Get the bit map of those ports exposed by this HBA.