No need to return an empty string in IRP_MN_QUERY_ID / BusQueryInstanceID ; a null string is enough
svn path=/trunk/; revision=20130
case BusQueryInstanceID:
{
DPRINT("USBMP: IRP_MJ_PNP / IRP_MN_QUERY_ID / BusQueryInstanceID\n");
case BusQueryInstanceID:
{
DPRINT("USBMP: IRP_MJ_PNP / IRP_MN_QUERY_ID / BusQueryInstanceID\n");
- RtlInitUnicodeString(&SourceString, L"");
- break;
+ *Information = 0;
+ return Status;
}
default:
DPRINT1("USBMP: IRP_MJ_PNP / IRP_MN_QUERY_ID / unknown query id type 0x%lx\n", IdType);
}
default:
DPRINT1("USBMP: IRP_MJ_PNP / IRP_MN_QUERY_ID / unknown query id type 0x%lx\n", IdType);
/* Initialize generic linux structure */\r
dev->irq = DeviceExtension->InterruptVector;\r
dev->dev_ext = (PVOID)DeviceExtension;\r
/* Initialize generic linux structure */\r
dev->irq = DeviceExtension->InterruptVector;\r
dev->dev_ext = (PVOID)DeviceExtension;\r
- dev->dev.dev_ext = (PVOID)DeviceObject;\r
+ dev->dev.dev_ext = DeviceObject;\r
dev->slot_name = ExAllocatePoolWithTag(NonPagedPool, 128, USB_OHCI_TAG); // 128 max len for slot name\r
\r
dev->slot_name = ExAllocatePoolWithTag(NonPagedPool, 128, USB_OHCI_TAG); // 128 max len for slot name\r
\r
init_wrapper(dev);\r
\r
strcpy(dev->dev.name, "OpenHCI PCI-USB Controller");\r
strcpy(dev->slot_name, "OHCD PCI Slot");\r
\r
init_wrapper(dev);\r
\r
strcpy(dev->dev.name, "OpenHCI PCI-USB Controller");\r
strcpy(dev->slot_name, "OHCD PCI Slot");\r
\r
- // Init the OHCI HCD. Probe will be called automatically, but will fail because id=NULL\r
+ /* Init the OHCI HCD. Probe will be called automatically, but will fail because id=NULL */\r
Status = ohci_hcd_pci_init();\r
if (!NT_SUCCESS(Status))\r
{\r
Status = ohci_hcd_pci_init();\r
if (!NT_SUCCESS(Status))\r
{\r
- // Probe device with real id now\r
+ /* Probe device with real id now */\r
ohci_pci_driver.probe(dev, ohci_pci_ids);\r
\r
return STATUS_SUCCESS;\r
ohci_pci_driver.probe(dev, ohci_pci_ids);\r
\r
return STATUS_SUCCESS;\r
NTSTATUS
InitLinuxWrapper(PDEVICE_OBJECT DeviceObject)
{
NTSTATUS
InitLinuxWrapper(PDEVICE_OBJECT DeviceObject)
{
- NTSTATUS Status = STATUS_SUCCESS;
-
PUSBMP_DEVICE_EXTENSION DeviceExtension = (PUSBMP_DEVICE_EXTENSION)DeviceObject->DeviceExtension;
/* Create generic linux structure */
PUSBMP_DEVICE_EXTENSION DeviceExtension = (PUSBMP_DEVICE_EXTENSION)DeviceObject->DeviceExtension;
/* Create generic linux structure */
/* Initialize generic linux structure */
dev->irq = DeviceExtension->InterruptVector;
dev->dev_ext = (PVOID)DeviceExtension;
/* Initialize generic linux structure */
dev->irq = DeviceExtension->InterruptVector;
dev->dev_ext = (PVOID)DeviceExtension;
- dev->dev.dev_ext = (PVOID)DeviceObject;
+ dev->dev.dev_ext = DeviceObject;
dev->slot_name = ExAllocatePoolWithTag(NonPagedPool, 128, USB_UHCI_TAG); // 128 max len for slot name
dev->slot_name = ExAllocatePoolWithTag(NonPagedPool, 128, USB_UHCI_TAG); // 128 max len for slot name
init_wrapper(dev);
strcpy(dev->dev.name, "UnivHCI PCI-USB Controller");
init_wrapper(dev);
strcpy(dev->dev.name, "UnivHCI PCI-USB Controller");
/* Probe device with real id now */
uhci_pci_driver.probe(dev, uhci_pci_ids);
/* Probe device with real id now */
uhci_pci_driver.probe(dev, uhci_pci_ids);