staging: vt6656: no need to bIndicateReceive when no bytes to read.
PATCH 1/1 staging: vt6656: no need to bIndicateReceive when no bytes to read.
Signed-off-by Malcolm Priestley <[email protected]>
--- drivers/staging/vt6656/usbpipe.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/vt6656/usbpipe.c +2 -1
@@ -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;
Signature · 1 line
1.7.10.4