[PATCH 6/6] linux: Fix a comment in handle_iso_completion
Hans de Goede
hdegoede at redhat.com
Wed Mar 21 11:09:05 EDT 2012
Fix the comment at the end of handle_iso_completion, we don't stop on urbs /
iso pkts with less data then requested, and this is a good thing since this
is a normal condition for iso transfers.
Signed-off-by: Hans de Goede <hdegoede at redhat.com>
---
libusb/os/linux_usbfs.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/libusb/os/linux_usbfs.c b/libusb/os/linux_usbfs.c
index 8d88c87..780f0bd 100644
--- a/libusb/os/linux_usbfs.c
+++ b/libusb/os/linux_usbfs.c
@@ -2154,8 +2154,7 @@ static int handle_iso_completion(struct usbi_transfer *itransfer,
break;
}
- /* if we're the last urb or we got less data than requested then we're
- * done */
+ /* if we're the last urb then we're done */
if (urb_idx == num_urbs) {
usbi_dbg("last URB in transfer --> complete!");
free_iso_urbs(tpriv);
--
1.7.9.3
More information about the libusbx
mailing list