mirror of https://github.com/acidanthera/audk.git
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
This commit is contained in:
parent
21d2b17f98
commit
ebe8d2ba8d
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue