1
0
mirror of https://github.com/mik3y/usb-serial-for-android synced 2025-06-09 17:06:21 +00:00

cdc: Remove spurious readAmt line from previous commit.

This commit is contained in:
mike wakerly 2012-10-12 09:04:27 -07:00
parent b328f3cbc9
commit 3812fbcb55

View File

@ -96,7 +96,6 @@ public class CdcAcmSerialDriver extends UsbSerialDriver {
final int numBytesRead;
synchronized (mReadBufferLock) {
int readAmt = Math.min(dest.length, mReadBuffer.length);
readAmt = Math.min(readAmt, mReadEndpoint.getMaxPacketSize());
numBytesRead = mConnection.bulkTransfer(mReadEndpoint, mReadBuffer, readAmt,
timeoutMillis);
if (numBytesRead < 0) {