[USBOHCI]
authorJohannes Anderwald <johannes.anderwald@reactos.org>
Mon, 23 Jan 2012 16:47:19 +0000 (16:47 +0000)
committerJohannes Anderwald <johannes.anderwald@reactos.org>
Mon, 23 Jan 2012 16:47:19 +0000 (16:47 +0000)
- Fix warning
- Remove assert
[USBEHCI]
- Remove assert

svn path=/branches/usb-bringup-trunk/; revision=55122

drivers/usb/usbehci_new/hcd_controller.cpp
drivers/usb/usbohci/hcd_controller.cpp
drivers/usb/usbohci/usb_request.cpp

index 5a6318e..ff72060 100644 (file)
@@ -502,7 +502,6 @@ CHCDController::HandlePnp(
                 //
                 // not supported
                 //
                 //
                 // not supported
                 //
-                PC_ASSERT(0);
                 Status = STATUS_NOT_SUPPORTED;
             }
             break;
                 Status = STATUS_NOT_SUPPORTED;
             }
             break;
index e5a2815..55f45c1 100644 (file)
@@ -502,7 +502,6 @@ CHCDController::HandlePnp(
                 //
                 // not supported
                 //
                 //
                 // not supported
                 //
-                PC_ASSERT(0);
                 Status = STATUS_NOT_SUPPORTED;
             }
             break;
                 Status = STATUS_NOT_SUPPORTED;
             }
             break;
index 8fe0320..609d4c3 100644 (file)
@@ -654,7 +654,7 @@ NTSTATUS
 CUSBRequest::BuildIsochronousEndpoint(
     POHCI_ENDPOINT_DESCRIPTOR * OutEndpointDescriptor)
 {
 CUSBRequest::BuildIsochronousEndpoint(
     POHCI_ENDPOINT_DESCRIPTOR * OutEndpointDescriptor)
 {
-    POHCI_ISO_TD FirstDescriptor, PreviousDescriptor = NULL, CurrentDescriptor;
+    POHCI_ISO_TD FirstDescriptor = NULL, PreviousDescriptor = NULL, CurrentDescriptor = NULL;
     POHCI_ENDPOINT_DESCRIPTOR EndpointDescriptor;
     ULONG Index = 0, SubIndex, NumberOfPackets, PageOffset, Page;
     NTSTATUS Status;
     POHCI_ENDPOINT_DESCRIPTOR EndpointDescriptor;
     ULONG Index = 0, SubIndex, NumberOfPackets, PageOffset, Page;
     NTSTATUS Status;