mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Remove unneeded pointer indirection
svn path=/trunk/; revision=17784
This commit is contained in:
parent
4786e1d6f0
commit
9162d35b10
3 changed files with 6 additions and 6 deletions
|
@ -118,7 +118,7 @@ UsbMpFdoStartDevice(
|
|||
DeviceExtension->BaseAddrLength = Descriptor->u.Port.Length;
|
||||
DeviceExtension->Flags = Descriptor->Flags;
|
||||
|
||||
((struct hc_driver *)(*pci_ids)->driver_data)->flags &= ~HCD_MEMORY;
|
||||
((struct hc_driver *)pci_ids->driver_data)->flags &= ~HCD_MEMORY;
|
||||
}
|
||||
else if (Descriptor->Type == CmResourceTypeMemory)
|
||||
{
|
||||
|
@ -126,7 +126,7 @@ UsbMpFdoStartDevice(
|
|||
DeviceExtension->BaseAddrLength = Descriptor->u.Memory.Length;
|
||||
DeviceExtension->Flags = Descriptor->Flags;
|
||||
|
||||
((struct hc_driver *)(*pci_ids)->driver_data)->flags |= HCD_MEMORY;
|
||||
((struct hc_driver *)pci_ids->driver_data)->flags |= HCD_MEMORY;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -135,7 +135,7 @@ UsbMpFdoStartDevice(
|
|||
/* Print assigned resources */
|
||||
DPRINT("USBMP: Interrupt Vector 0x%lx, %S base 0x%lx, Length 0x%lx\n",
|
||||
DeviceExtension->InterruptVector,
|
||||
((struct hc_driver *)(*pci_ids)->driver_data)->flags & HCD_MEMORY ? L"Memory" : L"I/O",
|
||||
((struct hc_driver *)pci_ids->driver_data)->flags & HCD_MEMORY ? L"Memory" : L"I/O",
|
||||
DeviceExtension->BaseAddress,
|
||||
DeviceExtension->BaseAddrLength);
|
||||
|
||||
|
|
|
@ -83,6 +83,6 @@ DriverUnload(PDRIVER_OBJECT DriverObject);
|
|||
NTSTATUS
|
||||
InitLinuxWrapper(PDEVICE_OBJECT DeviceObject);
|
||||
|
||||
extern struct pci_device_id** pci_ids;
|
||||
extern struct pci_device_id* pci_ids;
|
||||
|
||||
#endif
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
#include "uhci.h"
|
||||
|
||||
extern struct pci_driver uhci_pci_driver;
|
||||
extern struct pci_device_id* uhci_pci_ids;
|
||||
struct pci_device_id** pci_ids = &uhci_pci_ids;
|
||||
extern struct pci_device_id uhci_pci_ids[];
|
||||
struct pci_device_id* pci_ids = &uhci_pci_ids[0];
|
||||
|
||||
NTSTATUS
|
||||
InitLinuxWrapper(PDEVICE_OBJECT DeviceObject)
|
||||
|
|
Loading…
Reference in a new issue