mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-04 01:34:07 +00:00
hidl_test: do not use Return for app errors.
Test: hidl_test Bug: 31348667 Change-Id: Icc7e926bbb886b040fdea0ff9dee8bedad0860e7
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user