summaryrefslogtreecommitdiffstats
path: root/DuetPkg
diff options
context:
space:
mode:
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2009-07-13 06:07:23 +0000
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2009-07-13 06:07:23 +0000
commitebe8d2ba8d873ab82b107d194f2f784cd2aed783 (patch)
tree5e114912c99808ce0635a2fe87c9317f541fab9c /DuetPkg
parent21d2b17f9864a9891c19299d58d56bcdcaf273a7 (diff)
downloadedk2-ebe8d2ba8d873ab82b107d194f2f784cd2aed783.tar.gz
edk2-ebe8d2ba8d873ab82b107d194f2f784cd2aed783.tar.bz2
edk2-ebe8d2ba8d873ab82b107d194f2f784cd2aed783.zip
remove work around, since we had added return value check.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8921 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'DuetPkg')
-rw-r--r--DuetPkg/PciBusNoEnumerationDxe/PciCommand.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/DuetPkg/PciBusNoEnumerationDxe/PciCommand.c b/DuetPkg/PciBusNoEnumerationDxe/PciCommand.c
index 58b482c636..ea00087cce 100644
--- a/DuetPkg/PciBusNoEnumerationDxe/PciCommand.c
+++ b/DuetPkg/PciBusNoEnumerationDxe/PciCommand.c
@@ -392,7 +392,6 @@ Returns:
UINT8 CapabilityPtr;
UINT16 CapabilityEntry;
UINT8 CapabilityID;
- UINT32 Temp;
//
// To check the capability of this device supports
@@ -419,17 +418,11 @@ Returns:
PciIoDevice->PciIo.Pci.Read (
&PciIoDevice->PciIo,
- EfiPciIoWidthUint32,
+ EfiPciIoWidthUint8,
PCI_CAPBILITY_POINTER_OFFSET,
1,
- &Temp
+ &CapabilityPtr
);
- //
- // Do not get byte read directly, because some PCI card will return 0xFF
- // when perform PCI-Express byte read, while return correct 0x00
- // when perform PCI-Express dword read, or PCI dword read.
- //
- CapabilityPtr = (UINT8)Temp;
}
}