kernel: arch: use ENOTSUP instead of ENOSYS in k_float_disable()

This patch replaces ENOSYS into ENOTSUP to keep consistency with
the return value specification of k_float_enable().

Signed-off-by: Katsuhiro Suzuki <katsuhiro@katsuster.net>
This commit is contained in:
Katsuhiro Suzuki 2021-03-24 01:54:15 +09:00 committed by Carles Cufí
commit 19db485737
5 changed files with 8 additions and 8 deletions

View file

@ -5538,9 +5538,9 @@ __syscall void k_str_out(char *c, size_t n);
*
* @param thread ID of thread.
*
* @retval 0 On success.
* @retval -ENOSYS If the floating point disabling is not implemented.
* -EINVAL If the floating point disabling could not be performed.
* @retval 0 On success.
* @retval -ENOTSUP If the floating point disabling is not implemented.
* -EINVAL If the floating point disabling could not be performed.
*/
__syscall int k_float_disable(struct k_thread *thread);