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

Commit 42666b84 authored by Steven Moreland's avatar Steven Moreland
Browse files

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.

Bug: 150894288
Test: atest CtsNdkBinderTestCases
Change-Id: I247811a7d4600711c015647f77900bf3183890e2
parent c865e256
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -486,7 +486,6 @@ pid_t AIBinder_getCallingPid() {


void AIBinder_incStrong(AIBinder* binder) {
void AIBinder_incStrong(AIBinder* binder) {
    if (binder == nullptr) {
    if (binder == nullptr) {
        LOG(ERROR) << __func__ << ": on null binder";
        return;
        return;
    }
    }