[ros-diffs] [cgutman] 42127: - Don't fail the entire probe if something goes wrong when allocating a controller (this is what we do if _MULTI_UHCI is not defined also)

cgutman at svn.reactos.org cgutman at svn.reactos.org
Wed Jul 22 04:20:25 CEST 2009


Author: cgutman
Date: Wed Jul 22 04:20:24 2009
New Revision: 42127

URL: http://svn.reactos.org/svn/reactos?rev=42127&view=rev
Log:
 - Don't fail the entire probe if something goes wrong when allocating a controller (this is what we do if _MULTI_UHCI is not defined also)

Modified:
    trunk/reactos/drivers/usb/nt4compat/usbdriver/uhci.c

Modified: trunk/reactos/drivers/usb/nt4compat/usbdriver/uhci.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/nt4compat/usbdriver/uhci.c?rev=42127&r1=42126&r2=42127&view=diff
==============================================================================
--- trunk/reactos/drivers/usb/nt4compat/usbdriver/uhci.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/usb/nt4compat/usbdriver/uhci.c [iso-8859-1] Wed Jul 22 04:20:24 2009
@@ -651,9 +651,8 @@
 #ifdef _MULTI_UHCI
                     {
                         pdev = uhci_alloc(drvr_obj, reg_path, ((bus << 8) | (i << 3) | j), dev_mgr);
-                        count++;
-                        if (!pdev)
-                            return NULL;
+                        if (pdev)
+                            count++;
                     }
 #else
                     pdev = uhci_alloc(drvr_obj, reg_path, ((bus << 8) | (i << 3) | j), dev_mgr);



More information about the Ros-diffs mailing list