style: tests: 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:08:30 +07:00 committed by Henrik Brix Andersen
commit 9ae9873f12
3 changed files with 2 additions and 5 deletions

View file

@ -53,8 +53,6 @@ void z_early_memcpy(void *dst, const void *src, size_t n)
*(d_byte++) = *(s_byte++); *(d_byte++) = *(s_byte++);
n--; n--;
} }
return (void)dst;
} }
__boot_func __boot_func
@ -69,7 +67,6 @@ void z_early_memset(void *dst, int c, size_t n)
*(d_byte++) = c_byte; *(d_byte++) = c_byte;
n--; n--;
} }
return (void)dst;
} }
void *relocate_code_setup(void) void *relocate_code_setup(void)

View file

@ -1007,7 +1007,7 @@ void z_impl_check_syscall_context(void)
static inline void z_vrfy_check_syscall_context(void) static inline void z_vrfy_check_syscall_context(void)
{ {
return z_impl_check_syscall_context(); z_impl_check_syscall_context();
} }
#include <zephyr/syscalls/check_syscall_context_mrsh.c> #include <zephyr/syscalls/check_syscall_context_mrsh.c>

View file

@ -29,7 +29,7 @@ void z_impl_test_helpers_log_setup(void)
#ifdef CONFIG_USERSPACE #ifdef CONFIG_USERSPACE
static inline void z_vrfy_test_helpers_log_setup(void) static inline void z_vrfy_test_helpers_log_setup(void)
{ {
return z_impl_test_helpers_log_setup(); z_impl_test_helpers_log_setup();
} }
#include <zephyr/syscalls/test_helpers_log_setup_mrsh.c> #include <zephyr/syscalls/test_helpers_log_setup_mrsh.c>
#endif #endif