diff options
| author | 2020-03-06 18:20:56 -0800 | |
|---|---|---|
| committer | 2020-03-09 19:21:31 +0000 | |
| commit | 56c07ad531cb86a5ece0212c41ee9d4e2b2ea3bc (patch) | |
| tree | 84854c258b43152f95676b25ee3a6a11c4e1dc97 | |
| parent | 559b4339c728ee56c4eebc4d3c50866564501afa (diff) | |
libbinder_ndk: remove logspam on incStrong
AIBinder_incStrong is frequently called on a null binder out of
convenience, because in cases where ownership is required on a binder
that may or may not be nullptr, ignoring the incStrong on nullptr is
consistent.
Fixes: 150894288
Test: atest CtsNdkBinderTestCases
Change-Id: I247811a7d4600711c015647f77900bf3183890e2
(cherry picked from commit 42666b84bcdb268cd2e474eb7024a32651cc07c6)
Merged-In: I247811a7d4600711c015647f77900bf3183890e2
| -rw-r--r-- | libs/binder/ndk/ibinder.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libs/binder/ndk/ibinder.cpp b/libs/binder/ndk/ibinder.cpp index 75dcdc8389..649faa1c76 100644 --- a/libs/binder/ndk/ibinder.cpp +++ b/libs/binder/ndk/ibinder.cpp @@ -486,7 +486,6 @@ pid_t AIBinder_getCallingPid() { void AIBinder_incStrong(AIBinder* binder) { if (binder == nullptr) { - LOG(ERROR) << __func__ << ": on null binder"; return; } |