mirror of
https://github.com/reactos/reactos.git
synced 2025-01-13 01:22:03 +00:00
Change code in InterfaceBusTranslateBusAddress to use less pointer dereferences and less stack variables
svn path=/trunk/; revision=19907
This commit is contained in:
parent
593d6d0f28
commit
0f841983cd
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue