speedtch usbatm.c,1.34,1.35
Duncan Sands
duncan at infradead.org
Wed May 4 03:41:55 EDT 2005
Update of /home/cvs/speedtch
In directory phoenix.infradead.org:/tmp/cvs-serv6736
Modified Files:
usbatm.c
Log Message:
Don't send zero-length urbs.
Index: usbatm.c
===================================================================
RCS file: /home/cvs/speedtch/usbatm.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- usbatm.c 3 May 2005 14:34:07 -0000 1.34
+++ usbatm.c 4 May 2005 07:41:51 -0000 1.35
@@ -551,7 +551,7 @@
skb = skb_dequeue(&instance->sndqueue);
}
- if (num_written == buf_size || !skb) {
+ if (num_written == buf_size || (!skb && num_written)) {
tx->urb->transfer_buffer_length = num_written;
if (usbatm_submit_transceiver(tx))
More information about the Usbatm-commits
mailing list