hidl_test: do not use Return for app errors. am: 1f4fbc0793 am: 64281c8bdc

am: bebece483a

Change-Id: Ie5973996685593ed1bf04454bc7e4ddf3789ca06
This commit is contained in:
Yifan Hong
2016-11-03 19:27:36 +00:00
committed by android-build-merger

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;