Author: korli Date: 2011-04-27 22:06:28 +0200 (Wed, 27 Apr 2011) New Revision: 41286 Changeset: https://dev.haiku-os.org/changeset/41286 Modified: haiku/trunk/src/add-ons/kernel/busses/usb/uhci.cpp Log: * fixed typo * when removing a transfer, if this was the only one in the list, we set fLastIsochronousTransfer to NULL. Modified: haiku/trunk/src/add-ons/kernel/busses/usb/uhci.cpp =================================================================== --- haiku/trunk/src/add-ons/kernel/busses/usb/uhci.cpp 2011-04-27 15:04:55 UTC (rev 41285) +++ haiku/trunk/src/add-ons/kernel/busses/usb/uhci.cpp 2011-04-27 20:06:28 UTC (rev 41286) @@ -1016,7 +1016,7 @@ // 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 @@ // 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)