[ros-diffs] [cgutman] 42126: - Return the DEVICE_OBJECT we got instead of NULL

cgutman at svn.reactos.org cgutman at svn.reactos.org
Wed Jul 22 04:06:50 CEST 2009


Author: cgutman
Date: Wed Jul 22 04:06:50 2009
New Revision: 42126

URL: http://svn.reactos.org/svn/reactos?rev=42126&view=rev
Log:
 - Return the DEVICE_OBJECT we got instead of NULL

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

Modified: trunk/reactos/drivers/usb/nt4compat/usbdriver/ehci.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/nt4compat/usbdriver/ehci.c?rev=42126&r1=42125&r2=42126&view=diff
==============================================================================
--- trunk/reactos/drivers/usb/nt4compat/usbdriver/ehci.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/usb/nt4compat/usbdriver/ehci.c [iso-8859-1] Wed Jul 22 04:06:50 2009
@@ -3482,7 +3482,7 @@
             KeSynchronizeExecution(pdev_ext->ehci_int, ehci_cal_cpu_freq, NULL);
         }
     }
-    return NULL;
+    return pdev;
 }
 
 PDEVICE_OBJECT

Modified: trunk/reactos/drivers/usb/nt4compat/usbdriver/ohci.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/nt4compat/usbdriver/ohci.c?rev=42126&r1=42125&r2=42126&view=diff
==============================================================================
--- trunk/reactos/drivers/usb/nt4compat/usbdriver/ohci.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/usb/nt4compat/usbdriver/ohci.c [iso-8859-1] Wed Jul 22 04:06:50 2009
@@ -236,7 +236,7 @@
             //KeSynchronizeExecution(pdev_ext->ohci_int, ehci_cal_cpu_freq, NULL);
         }
     }
-    return NULL;
+    return pdev;
 }
 
 BOOLEAN ohci_mem_init (POHCI_DEVICE_EXTENSION dev_ext)

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=42126&r1=42125&r2=42126&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:06:50 2009
@@ -679,7 +679,7 @@
             KeSynchronizeExecution(pdev_ext->uhci_int, uhci_cal_cpu_freq, NULL);
         }
     }
-    return NULL;
+    return pdev;
 }
 
 PDEVICE_OBJECT



More information about the Ros-diffs mailing list