samples: ipc: openamp: Fix missed return error check

The return from ipm_set_enabled wasn't assigned to 'status' so the check
right after the call to ipm_set_enabled() wasn't doing the right thing.

Fixes: #13881
Coverity CID: 190932

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2019-02-27 10:22:00 -06:00 committed by Anas Nashif
parent 73ee3719e9
commit 11b3dce674
1 changed files with 1 additions and 1 deletions

View File

@ -200,7 +200,7 @@ void app_task(void *arg1, void *arg2, void *arg3)
ipm_register_callback(ipm_handle, platform_ipm_callback, NULL);
ipm_set_enabled(ipm_handle, 1);
status = ipm_set_enabled(ipm_handle, 1);
if (status != 0) {
printk("ipm_set_enabled failed\n");
return;