hidl_test: do not use Return for app errors.

Test: hidl_test
Bug: 31348667
Change-Id: Icc7e926bbb886b040fdea0ff9dee8bedad0860e7
This commit is contained in:
Yifan Hong
2016-11-02 16:50:01 -07:00
parent 7c636f8149
commit 1f4fbc0793

View File

@@ -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;