mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 17:17:04 -04:00
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:
committed by
Greg Kroah-Hartman
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user