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
This commit is contained in:
Michael Lotz 2007-11-22 05:35:13 +00:00
parent ff7cf84b89
commit e4ef0f13b7

View File

@ -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) {