staging: vt6656: no need to bIndicateReceive when no bytes to read.
authorMalcolm Priestley <tvboxspy@gmail.com>
Sun, 4 Nov 2012 16:18:56 +0000 (16:18 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Nov 2012 20:45:43 +0000 (12:45 -0800)
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/usbpipe.c

index b5259db6e36a17584447bf578d5a1e85ba208191..fc68518526e03f470782aaee81a9cc33cab2b3e4 100644 (file)
@@ -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;