mtp: Allow transfer of files larger than 4G
Change-Id: I1af0d1ad0f73f1d6adffcd9cbb2f0a526ea3b9d7
diff --git a/mtp/ffs/MtpServer.cpp b/mtp/ffs/MtpServer.cpp
index 454da25..cacb45e 100755
--- a/mtp/ffs/MtpServer.cpp
+++ b/mtp/ffs/MtpServer.cpp
@@ -981,7 +981,7 @@
if (maxFileSize != 0) {
// if mSendObjectFileSize is 0xFFFFFFFF, then all we know is the file size
// is >= 0xFFFFFFFF
- if (mSendObjectFileSize > maxFileSize || mSendObjectFileSize == 0xFFFFFFFF)
+ if (mSendObjectFileSize > maxFileSize)
return MTP_RESPONSE_OBJECT_TOO_LARGE;
}