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

Commit 64281c8b authored by Yifan Hong's avatar Yifan Hong Committed by android-build-merger
Browse files

hidl_test: do not use Return for app errors.

am: 1f4fbc07

Change-Id: I94c6383d004c9f70e015308556a84b076f3a983c
parents d8fd6acf 1f4fbc07
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@ Return<void> selectService(bool sendRemote, CB &_hidl_cb, sp<IChild> &local) {
    if (sendRemote) {
        toSend = IChild::getService("child");
        if (!toSend->isRemote()) {
            return Status::fromExceptionCode(Status::EX_ILLEGAL_STATE);
            toSend = nullptr;
        }
    } else {
        toSend = local;