style: kernel: remove unnecessary return statements

For code clarity, remove unnecessary `return` statements
in functions with a void return type they don't affect control flow.

Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>
This commit is contained in:
Pisit Sawangvonganan 2024-09-18 15:07:54 +07:00 committed by Henrik Brix Andersen
commit 5c8a2c0dbf

View file

@ -355,7 +355,7 @@ void z_impl_k_thread_start(k_tid_t thread)
static inline void z_vrfy_k_thread_start(k_tid_t thread) static inline void z_vrfy_k_thread_start(k_tid_t thread)
{ {
K_OOPS(K_SYSCALL_OBJ(thread, K_OBJ_THREAD)); K_OOPS(K_SYSCALL_OBJ(thread, K_OBJ_THREAD));
return z_impl_k_thread_start(thread); z_impl_k_thread_start(thread);
} }
#include <zephyr/syscalls/k_thread_start_mrsh.c> #include <zephyr/syscalls/k_thread_start_mrsh.c>
#endif /* CONFIG_USERSPACE */ #endif /* CONFIG_USERSPACE */