mirror of
https://github.com/reactos/reactos.git
synced 2024-08-11 13:48:01 +00:00
Remove unneeded pointer indirection
svn path=/trunk/; revision=17784
This commit is contained in:
parent
4786e1d6f0
commit
9162d35b10
|
@ -118,7 +118,7 @@ UsbMpFdoStartDevice(
|
||||||
DeviceExtension->BaseAddrLength = Descriptor->u.Port.Length;
|
DeviceExtension->BaseAddrLength = Descriptor->u.Port.Length;
|
||||||
DeviceExtension->Flags = Descriptor->Flags;
|
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)
|
else if (Descriptor->Type == CmResourceTypeMemory)
|
||||||
{
|
{
|
||||||
|
@ -126,7 +126,7 @@ UsbMpFdoStartDevice(
|
||||||
DeviceExtension->BaseAddrLength = Descriptor->u.Memory.Length;
|
DeviceExtension->BaseAddrLength = Descriptor->u.Memory.Length;
|
||||||
DeviceExtension->Flags = Descriptor->Flags;
|
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 */
|
/* Print assigned resources */
|
||||||
DPRINT("USBMP: Interrupt Vector 0x%lx, %S base 0x%lx, Length 0x%lx\n",
|
DPRINT("USBMP: Interrupt Vector 0x%lx, %S base 0x%lx, Length 0x%lx\n",
|
||||||
DeviceExtension->InterruptVector,
|
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->BaseAddress,
|
||||||
DeviceExtension->BaseAddrLength);
|
DeviceExtension->BaseAddrLength);
|
||||||
|
|
||||||
|
|
|
@ -83,6 +83,6 @@ DriverUnload(PDRIVER_OBJECT DriverObject);
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
InitLinuxWrapper(PDEVICE_OBJECT DeviceObject);
|
InitLinuxWrapper(PDEVICE_OBJECT DeviceObject);
|
||||||
|
|
||||||
extern struct pci_device_id** pci_ids;
|
extern struct pci_device_id* pci_ids;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
#include "uhci.h"
|
#include "uhci.h"
|
||||||
|
|
||||||
extern struct pci_driver uhci_pci_driver;
|
extern struct pci_driver uhci_pci_driver;
|
||||||
extern struct pci_device_id* uhci_pci_ids;
|
extern struct pci_device_id uhci_pci_ids[];
|
||||||
struct pci_device_id** pci_ids = &uhci_pci_ids;
|
struct pci_device_id* pci_ids = &uhci_pci_ids[0];
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
InitLinuxWrapper(PDEVICE_OBJECT DeviceObject)
|
InitLinuxWrapper(PDEVICE_OBJECT DeviceObject)
|
||||||
|
|
Loading…
Reference in a new issue