summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Fennema <fennema@google.com>2018-11-30 20:19:04 -0800
committerandroid-build-merger <android-build-merger@google.com>2018-11-30 20:19:04 -0800
commit0e757faeafbbd6f29359b944ac2ce1a51efa71b9 (patch)
tree73e65eb0a37bb976ca2e6b5f86d4cadc37f112ac
parentb5b00f8f33a2b3e536f26ff0e43492cbc6365183 (diff)
parent7b16be1845f4daccb39faac18cc0abaf54886fce (diff)
downloadcontexthub-0e757faeafbbd6f29359b944ac2ce1a51efa71b9.tar.gz
contexthubhal: fix result when hal doesn't send mgmt message to nanohub am: 7bf6a0cf68
am: 7b16be1845 Change-Id: I5fc04daf5a30fa2769daebb460195c50c0a0a710
-rw-r--r--contexthubhal/system_comms.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/contexthubhal/system_comms.cpp b/contexthubhal/system_comms.cpp
index 6edd0cbc..358e2f54 100644
--- a/contexthubhal/system_comms.cpp
+++ b/contexthubhal/system_comms.cpp
@@ -418,7 +418,7 @@ int SystemComm::AppMgmtSession::setup(const hub_message_t *appMsg, uint32_t tran
int SystemComm::AppMgmtSession::setupMgmt(const hub_message_t *appMsg, uint32_t transactionId, uint32_t cmd, AppManager &appManager)
{
- int32_t result = 0;
+ int32_t result = -1; // results are only directly returned on failure
const hub_app_name_t &appName = *static_cast<const hub_app_name_t*>(appMsg->message);
if (appMsg->message_len != sizeof(appName)) {
return -EINVAL;