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:
parent
fbce428a07
commit
87c629853e
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue