From 56c07ad531cb86a5ece0212c41ee9d4e2b2ea3bc Mon Sep 17 00:00:00 2001 From: Steven Moreland Date: Fri, 6 Mar 2020 18:20:56 -0800 Subject: 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 --- libs/binder/ndk/ibinder.cpp | 1 - 1 file changed, 1 deletion(-) 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; } -- cgit v1.2.3-59-g8ed1b