[USB-BRINGUP-TRUNK]

- Don't do any special checks for AddDevice; a failure check is enough

svn path=/branches/usb-bringup-trunk/; revision=55042
This commit is contained in:
Cameron Gutman 2012-01-21 04:17:22 +00:00
parent 8fdcfb28ce
commit a687ae8748

View file

@ -102,16 +102,7 @@ IopInitializeDevice(PDEVICE_NODE DeviceNode,
return Status;
}
/* Check if driver added a FDO above the PDO */
Fdo = IoGetAttachedDeviceReference(DeviceNode->PhysicalDeviceObject);
if (Fdo == DeviceNode->PhysicalDeviceObject)
{
/* FIXME: What do we do? Unload the driver or just disable the device? */
DPRINT1("An FDO was not attached\n");
ObDereferenceObject(Fdo);
IopDeviceNodeSetFlag(DeviceNode, DNF_DISABLED);
return STATUS_UNSUCCESSFUL;
}
/* Check if we have a ACPI device (needed for power management) */
if (Fdo->DeviceType == FILE_DEVICE_ACPI)