Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ade8989a authored by Ganesh Mahendran's avatar Ganesh Mahendran
Browse files

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: default avatarGanesh Mahendran <opensource.ganesh@gmail.com>
parent 25606929
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2645,7 +2645,7 @@ status_t Parcel::continueWrite(size_t desired)
                pthread_mutex_unlock(&gParcelGlobalAllocSizeLock);
                mData = data;
                mDataCapacity = desired;
            } else if (desired > mDataCapacity) {
            } else {
                mError = NO_MEMORY;
                return NO_MEMORY;
            }