From 11b3dce6745ac254eed071a3d86776a74adff024 Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Wed, 27 Feb 2019 10:22:00 -0600 Subject: [PATCH] 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 --- samples/subsys/ipc/openamp/src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/subsys/ipc/openamp/src/main.c b/samples/subsys/ipc/openamp/src/main.c index d0f2bc8510c..7649c028d1e 100644 --- a/samples/subsys/ipc/openamp/src/main.c +++ b/samples/subsys/ipc/openamp/src/main.c @@ -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;