From 0f841983cd2155cd49770f9434127a6b942153d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Mon, 5 Dec 2005 14:20:29 +0000 Subject: [PATCH] Change code in InterfaceBusTranslateBusAddress to use less pointer dereferences and less stack variables svn path=/trunk/; revision=19907 --- reactos/drivers/bus/pci/pdo.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/reactos/drivers/bus/pci/pdo.c b/reactos/drivers/bus/pci/pdo.c index 4175ccc1f49..563bb9a497f 100644 --- a/reactos/drivers/bus/pci/pdo.c +++ b/reactos/drivers/bus/pci/pdo.c @@ -858,16 +858,14 @@ InterfaceBusTranslateBusAddress( 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); }