Skip to content

Commit 11b3dce

Browse files
galaknashif
authored andcommitted
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 <[email protected]>
1 parent 73ee371 commit 11b3dce

File tree

1 file changed

+1
-1
lines changed
  • samples/subsys/ipc/openamp/src

1 file changed

+1
-1
lines changed

samples/subsys/ipc/openamp/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ void app_task(void *arg1, void *arg2, void *arg3)
200200

201201
ipm_register_callback(ipm_handle, platform_ipm_callback, NULL);
202202

203-
ipm_set_enabled(ipm_handle, 1);
203+
status = ipm_set_enabled(ipm_handle, 1);
204204
if (status != 0) {
205205
printk("ipm_set_enabled failed\n");
206206
return;

0 commit comments

Comments
 (0)