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

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Malcolm Priestley 2012-11-04 16:18:56 +00:00 committed by Greg Kroah-Hartman
parent fbce428a07
commit 87c629853e
1 changed files with 2 additions and 1 deletions

View 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;