From e4ef0f13b7c1b9427b05b083beb31d1d1309537f Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Thu, 22 Nov 2007 05:35:13 +0000 Subject: [PATCH] Since the interval is now part of the general pipe info we don't have to cast the pipe to an interrupt one anymore. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22976 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/busses/usb/ehci.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/add-ons/kernel/busses/usb/ehci.cpp b/src/add-ons/kernel/busses/usb/ehci.cpp index 89da0570a3..2e0d144e95 100644 --- a/src/add-ons/kernel/busses/usb/ehci.cpp +++ b/src/add-ons/kernel/busses/usb/ehci.cpp @@ -457,10 +457,9 @@ EHCI::SubmitTransfer(Transfer *transfer) print_queue(queueHead); #endif - if (pipe->Type() & USB_OBJECT_INTERRUPT_PIPE) { - uint8 interval = ((InterruptPipe *)pipe)->Interval(); - result = LinkInterruptQueueHead(queueHead, interval); - } else + if (pipe->Type() & USB_OBJECT_INTERRUPT_PIPE) + result = LinkInterruptQueueHead(queueHead, pipe->Interval()); + else result = LinkQueueHead(queueHead); if (result < B_OK) {