From: Malcolm Priestley Date: Sun, 4 Nov 2012 16:18:56 +0000 (+0000) Subject: staging: vt6656: no need to bIndicateReceive when no bytes to read. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=87c629853e9b901f9756a628aa088d8d6a1ebf00;p=linux-beck.git staging: vt6656: no need to bIndicateReceive when no bytes to read. Signed-off-by: Malcolm Priestley Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/vt6656/usbpipe.c b/drivers/staging/vt6656/usbpipe.c index b5259db6e36a..fc68518526e0 100644 --- a/drivers/staging/vt6656/usbpipe.c +++ b/drivers/staging/vt6656/usbpipe.c @@ -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;