You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/04/23 08:25:59 UTC
[incubator-nuttx] branch master updated: boards/boardctl: correct boarctl return value
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 <mi...@gmail.com>
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 <mi...@gmail.com>
---
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 */