* fixed typo
* when removing a transfer, if this was the only one in the list, we set fLastIsochronousTransfer to NULL. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41286 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
0892800f69
commit
e5937bd21c
@ -1016,7 +1016,7 @@ UHCI::SubmitIsochronous(Transfer *transfer)
|
||||
// The overhead is not worthy.
|
||||
uint16 bandwidth = transfer->Bandwidth() / isochronousData->packet_count;
|
||||
|
||||
TRACE("isochronous transfer descriptor bandwdith %d\n", bandwidth);
|
||||
TRACE("isochronous transfer descriptor bandwidth %d\n", bandwidth);
|
||||
|
||||
// The following holds the list of transfer descriptor of the
|
||||
// isochronous request. It is used to quickly remove all the isochronous
|
||||
@ -1543,9 +1543,11 @@ UHCI::FinishIsochronousTransfers()
|
||||
|
||||
// Remove the transfer
|
||||
if (LockIsochronous()) {
|
||||
if (transfer == fFirstIsochronousTransfer)
|
||||
if (transfer == fFirstIsochronousTransfer) {
|
||||
fFirstIsochronousTransfer = transfer->link;
|
||||
else {
|
||||
if (transfer == fLastIsochronousTransfer)
|
||||
fLastIsochronousTransfer = NULL;
|
||||
} else {
|
||||
isochronous_transfer_data *temp
|
||||
= fFirstIsochronousTransfer;
|
||||
while (transfer != temp->link)
|
||||
|
Loading…
Reference in New Issue
Block a user