libbinder: remove unnecessary check
(desired > mDataCapacity) is always true in (desired > mDataCapacity)'s
branch. So we do not need to do the check.
Change-Id: I4e78a8fd53297eeffa5edfbaea0a0ed50bcddd72
Signed-off-by: Ganesh Mahendran <opensource.ganesh@gmail.com>
diff --git a/libs/binder/Parcel.cpp b/libs/binder/Parcel.cpp
index 84ca3c0..f739f07 100644
--- a/libs/binder/Parcel.cpp
+++ b/libs/binder/Parcel.cpp
@@ -2645,7 +2645,7 @@
pthread_mutex_unlock(&gParcelGlobalAllocSizeLock);
mData = data;
mDataCapacity = desired;
- } else if (desired > mDataCapacity) {
+ } else {
mError = NO_MEMORY;
return NO_MEMORY;
}