Skip to contentSkip to conversation

staging: vt6656: no need to bIndicateReceive when no bytes to read.

PATCH New Malcolm Priestley 1 participant 1 message Nov 4, 2012 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: vt6656: no need to bIndicateReceive when no bytes to read.

---
 drivers/staging/vt6656/usbpipe.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/vt6656/usbpipe.c +2 -1
index b5259db..fc68518 100644
@@ -575,7 +575,8 @@ s_nsBulkInUsbIoCompleteRead(
 //            MP_SET_FLAG(pDevice, fMP_DISCONNECTED);
 //        }
     } else {
-        bIndicateReceive = TRUE;
+	if (bytesRead)
+		bIndicateReceive = TRUE;
         pDevice->ulBulkInContCRCError = 0;
         pDevice->ulBulkInBytesRead += bytesRead;
 
Signature · 1 line
1.7.10.4