mirror of
https://github.com/apache/nuttx.git
synced 2025-12-16 09:45:18 +08:00
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 <minabe.oki@gmail.com>
This commit is contained in:
@@ -823,7 +823,7 @@ int boardctl(unsigned int cmd, uintptr_t arg)
|
||||
return ERROR;
|
||||
}
|
||||
|
||||
return OK;
|
||||
return ret;
|
||||
}
|
||||
|
||||
#endif /* CONFIG_BOARDCTL */
|
||||
|
||||
Reference in New Issue
Block a user