Remove unneeded pointer indirection

svn path=/trunk/; revision=17784
This commit is contained in:
Hervé Poussineau 2005-09-10 18:45:34 +00:00
parent 4786e1d6f0
commit 9162d35b10
3 changed files with 6 additions and 6 deletions

View file

@ -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);

View file

@ -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

View file

@ -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)