diff options
author | 2021-02-02 17:59:43 -0800 | |
---|---|---|
committer | 2021-02-02 17:59:43 -0800 | |
commit | a840689272abd235904f07a700335fcf8615935a (patch) | |
tree | e2df8a5e89ee691af421724f1d2e3d7c2c24dad8 | |
parent | 1fe4c9f19e4355c0410d46abf339b4addb2b55c3 (diff) |
Fix warnings in libs/binder.
Test: mm
Change-Id: Ia1387dcfbc789914c4fba80193f4e36d60fec88e
-rw-r--r-- | libs/binder/IpPrefix.cpp | 2 | ||||
-rw-r--r-- | libs/binder/Parcel.cpp | 2 | ||||
-rw-r--r-- | libs/binder/PersistableBundle.cpp | 1 |
3 files changed, 1 insertions, 4 deletions
diff --git a/libs/binder/IpPrefix.cpp b/libs/binder/IpPrefix.cpp index 8d622668cc..4edc493f11 100644 --- a/libs/binder/IpPrefix.cpp +++ b/libs/binder/IpPrefix.cpp @@ -24,12 +24,10 @@ #include <log/log.h> #include <utils/Errors.h> -using android::BAD_TYPE; using android::BAD_VALUE; using android::NO_ERROR; using android::Parcel; using android::status_t; -using android::UNEXPECTED_NULL; namespace android { 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; diff --git a/libs/binder/PersistableBundle.cpp b/libs/binder/PersistableBundle.cpp index c807cfe89a..406fee0227 100644 --- a/libs/binder/PersistableBundle.cpp +++ b/libs/binder/PersistableBundle.cpp @@ -31,7 +31,6 @@ using android::BAD_TYPE; using android::BAD_VALUE; using android::NO_ERROR; using android::Parcel; -using android::sp; using android::status_t; using android::UNEXPECTED_NULL; |