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

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


The following commit(s) were added to refs/heads/master by this push:
     new 54508a3798 boards/boardctl: correct boarctl return value
54508a3798 is described below

commit 54508a37984583750521dc4b43a308ace5a40da7
Author: Oki Minabe <[email protected]>
AuthorDate: Sat Apr 23 15:51:42 2022 +0900

    boards/boardctl: correct boarctl return value
    
    Summary:
    - Correct boardctl function's return value
    - In case of BOARDIOC_TESTSET, `ret' has 0 or 1 or an error,
      but `ret' is ignored except error.
    
    Impact:
    - boardctl return value except errors
    
    Testing:
    - custom Cortex-A9 board
    
    Signed-off-by: Oki Minabe <[email protected]>
---
 boards/boardctl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/boards/boardctl.c b/boards/boardctl.c
index d28c7b7247..d01cf0467a 100644
--- a/boards/boardctl.c
+++ b/boards/boardctl.c
@@ -823,7 +823,7 @@ int boardctl(unsigned int cmd, uintptr_t arg)
       return ERROR;
     }
 
-  return OK;
+  return ret;
 }
 
 #endif /* CONFIG_BOARDCTL */

Reply via email to