Revert "Status writeToParcel no OK on ERR"
Going with different solution.
This reverts commit 662378eaf66fb19ceb60aad4509c55843c78ff4d.
Bug: 116618418
Test: boot
Change-Id: I024b6768b48365ef4196441b57435c323ebaa1af
diff --git a/transport/HidlBinderSupport.cpp b/transport/HidlBinderSupport.cpp
index a96050c..f28310c 100644
--- a/transport/HidlBinderSupport.cpp
+++ b/transport/HidlBinderSupport.cpp
@@ -213,8 +213,7 @@
// Something really bad has happened, and we're not going to even
// try returning rich error data.
if (s.exceptionCode() == Status::EX_TRANSACTION_FAILED) {
- status_t status = s.transactionError();
- return status == OK ? FAILED_TRANSACTION : status;
+ return s.transactionError();
}
status_t status = parcel->writeInt32(s.exceptionCode());