From: Cameron Gutman Date: Sat, 21 Jan 2012 04:17:22 +0000 (+0000) Subject: [USB-BRINGUP-TRUNK] X-Git-Tag: backups/usb-bringup-trunk@60667~209 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=a687ae874804f0b29df7f30b13a58c255d4234ed [USB-BRINGUP-TRUNK] - Don't do any special checks for AddDevice; a failure check is enough svn path=/branches/usb-bringup-trunk/; revision=55042 --- diff --git a/ntoskrnl/io/pnpmgr/pnpmgr.c b/ntoskrnl/io/pnpmgr/pnpmgr.c index c4311ffe1a8..f1ebca9159d 100644 --- a/ntoskrnl/io/pnpmgr/pnpmgr.c +++ b/ntoskrnl/io/pnpmgr/pnpmgr.c @@ -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)