[ros-diffs] [cgutman] 55042: [USB-BRINGUP-TRUNK] - Don't do any special checks for AddDevice; a failure check is enough

cgutman at svn.reactos.org cgutman at svn.reactos.org
Sat Jan 21 04:17:24 UTC 2012


Author: cgutman
Date: Sat Jan 21 04:17:22 2012
New Revision: 55042

URL: http://svn.reactos.org/svn/reactos?rev=55042&view=rev
Log:
[USB-BRINGUP-TRUNK]
- Don't do any special checks for AddDevice; a failure check is enough

Modified:
    branches/usb-bringup-trunk/ntoskrnl/io/pnpmgr/pnpmgr.c

Modified: branches/usb-bringup-trunk/ntoskrnl/io/pnpmgr/pnpmgr.c
URL: http://svn.reactos.org/svn/reactos/branches/usb-bringup-trunk/ntoskrnl/io/pnpmgr/pnpmgr.c?rev=55042&r1=55041&r2=55042&view=diff
==============================================================================
--- branches/usb-bringup-trunk/ntoskrnl/io/pnpmgr/pnpmgr.c [iso-8859-1] (original)
+++ branches/usb-bringup-trunk/ntoskrnl/io/pnpmgr/pnpmgr.c [iso-8859-1] Sat Jan 21 04:17:22 2012
@@ -102,16 +102,7 @@
       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)




More information about the Ros-diffs mailing list