]> git.proxmox.com Git - mirror_edk2.git/commitdiff
remove work around, since we had added return value check.
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 13 Jul 2009 06:07:23 +0000 (06:07 +0000)
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 13 Jul 2009 06:07:23 +0000 (06:07 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8921 6f19259b-4bc3-4df7-8a09-765794883524

DuetPkg/PciBusNoEnumerationDxe/PciCommand.c

index 58b482c63693a0d4bd3089697b5f935b71efa03a..ea00087cce8d833f913a44d68e0e6b0120810776 100644 (file)
@@ -392,7 +392,6 @@ Returns:
   UINT8   CapabilityPtr;\r
   UINT16  CapabilityEntry;\r
   UINT8   CapabilityID;\r
-  UINT32  Temp;\r
 \r
   //\r
   // To check the capability of this device supports\r
@@ -419,17 +418,11 @@ Returns:
 \r
       PciIoDevice->PciIo.Pci.Read (\r
                                &PciIoDevice->PciIo,\r
-                               EfiPciIoWidthUint32,\r
+                               EfiPciIoWidthUint8,\r
                                PCI_CAPBILITY_POINTER_OFFSET,\r
                                1,\r
-                               &Temp\r
+                               &CapabilityPtr\r
                                );\r
-      //\r
-      // Do not get byte read directly, because some PCI card will return 0xFF\r
-      // when perform PCI-Express byte read, while return correct 0x00 \r
-      // when perform PCI-Express dword read, or PCI dword read.\r
-      //\r
-      CapabilityPtr = (UINT8)Temp;\r
     }\r
   }\r
 \r