diff options
author | Ben Fennema <fennema@google.com> | 2018-11-30 20:29:01 -0800 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-11-30 20:29:01 -0800 |
commit | c2866424c07d58d4930082eba32f89a56478c056 (patch) | |
tree | 294a0ae08035e67d4e1f02b710747985421c6562 | |
parent | 3eb72293ec9c4664eb9dfd98c9c99a6b32f30d8f (diff) | |
parent | 0e757faeafbbd6f29359b944ac2ce1a51efa71b9 (diff) | |
download | contexthub-c2866424c07d58d4930082eba32f89a56478c056.tar.gz |
contexthubhal: fix result when hal doesn't send mgmt message to nanohub am: 7bf6a0cf68 am: 7b16be1845
am: 0e757faeaf
Change-Id: Ie38c1f41198f175a90b3f947d41d9d444e8dba13
-rw-r--r-- | contexthubhal/system_comms.cpp | 2 |
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; |