From a687ae874804f0b29df7f30b13a58c255d4234ed Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 21 Jan 2012 04:17:22 +0000 Subject: [PATCH] [USB-BRINGUP-TRUNK] - Don't do any special checks for AddDevice; a failure check is enough svn path=/branches/usb-bringup-trunk/; revision=55042 --- ntoskrnl/io/pnpmgr/pnpmgr.c | 9 --------- 1 file changed, 9 deletions(-) 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) -- 2.17.1