Change code in InterfaceBusTranslateBusAddress to use less pointer dereferences and less stack variables
Modified: trunk/reactos/drivers/bus/pci/pdo.c

Modified: trunk/reactos/drivers/bus/pci/pdo.c
--- trunk/reactos/drivers/bus/pci/pdo.c	2005-12-05 02:59:29 UTC (rev 19906)
+++ trunk/reactos/drivers/bus/pci/pdo.c	2005-12-05 14:20:29 UTC (rev 19907)
@@ -858,16 +858,14 @@
   OUT PPHYSICAL_ADDRESS TranslatedAddress)
 {
   PPDO_DEVICE_EXTENSION DeviceExtension;
-  PFDO_DEVICE_EXTENSION FdoDeviceExtension;
 
   DPRINT("InterfaceBusTranslateBusAddress(%p %p 0x%lx %p %p)\n",
     Context, BusAddress, Length, AddressSpace, TranslatedAddress);
 
   DeviceExtension = (PPDO_DEVICE_EXTENSION)((PDEVICE_OBJECT)Context)->DeviceExtension;
-  FdoDeviceExtension = (PFDO_DEVICE_EXTENSION)DeviceExtension->Fdo->DeviceExtension;
 
   return HalTranslateBusAddress(
-    PCIBus, FdoDeviceExtension->BusNumber,
+    PCIBus, DeviceExtension->PciDevice->BusNumber,
     BusAddress, AddressSpace, TranslatedAddress);
 }