diff options
author | 2021-02-02 17:59:43 -0800 | |
---|---|---|
committer | 2021-02-02 17:59:43 -0800 | |
commit | a840689272abd235904f07a700335fcf8615935a (patch) | |
tree | e2df8a5e89ee691af421724f1d2e3d7c2c24dad8 /libs/binder/Parcel.cpp | |
parent | 1fe4c9f19e4355c0410d46abf339b4addb2b55c3 (diff) |
Fix warnings in libs/binder.
Test: mm
Change-Id: Ia1387dcfbc789914c4fba80193f4e36d60fec88e
Diffstat (limited to 'libs/binder/Parcel.cpp')
-rw-r--r-- | libs/binder/Parcel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/binder/Parcel.cpp b/libs/binder/Parcel.cpp index 8087443720..8dab98ebee 100644 --- a/libs/binder/Parcel.cpp +++ b/libs/binder/Parcel.cpp @@ -2285,7 +2285,7 @@ int Parcel::readParcelFileDescriptor() const ssize_t written = TEMP_FAILURE_RETRY( ::write(comm, &message, sizeof(message))); - if (written == -1 || written != sizeof(message)) { + if (written != sizeof(message)) { ALOGW("Failed to detach ParcelFileDescriptor written: %zd err: %s", written, strerror(errno)); return BAD_TYPE; |