This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 0cf828eedb328a35d61e87ba1bff2a5b5cab1023
Author: zhangyuan29 <[email protected]>
AuthorDate: Fri May 8 20:12:11 2026 +0800

    drivers/rpmsg: check the result of rpmsg_create_wqueues()
    
    DEBUGVERIFY() asserts that its argument is not negative, so
    DEBUGVERIFY(rpmsg_create_wqueues(...) == 0) could never fire: the
    comparison is 0 or 1. Pass the return value itself, so a failure to
    create the global work queues is caught.
    
    Signed-off-by: Zhang Yuan <[email protected]>
---
 drivers/rpmsg/rpmsg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/rpmsg/rpmsg.c b/drivers/rpmsg/rpmsg.c
index 9fe84c17b7a..7725f9c8268 100644
--- a/drivers/rpmsg/rpmsg.c
+++ b/drivers/rpmsg/rpmsg.c
@@ -347,7 +347,7 @@ void rpmsg_initialize(void)
   rpmsg_procfs_initialize();
 #ifdef CONFIG_RPMSG_WQUEUE_GLOBAL
   DEBUGVERIFY(rpmsg_create_wqueues(g_rpmsg_wqueues, "glb",
-              CONFIG_RPMSG_WQUEUE_PRIORITY) == 0);
+              CONFIG_RPMSG_WQUEUE_PRIORITY));
 #endif
 }
 

Reply via email to