提交 87c62985 编写于 作者: M Malcolm Priestley 提交者: Greg Kroah-Hartman

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

Signed-off-by: NMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 fbce428a
...@@ -575,7 +575,8 @@ s_nsBulkInUsbIoCompleteRead( ...@@ -575,7 +575,8 @@ s_nsBulkInUsbIoCompleteRead(
// MP_SET_FLAG(pDevice, fMP_DISCONNECTED); // MP_SET_FLAG(pDevice, fMP_DISCONNECTED);
// } // }
} else { } else {
bIndicateReceive = TRUE; if (bytesRead)
bIndicateReceive = TRUE;
pDevice->ulBulkInContCRCError = 0; pDevice->ulBulkInContCRCError = 0;
pDevice->ulBulkInBytesRead += bytesRead; pDevice->ulBulkInBytesRead += bytesRead;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册