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:
parent
5c8a2c0dbf
commit
9ae9873f12
3 changed files with 2 additions and 5 deletions
|
@ -53,8 +53,6 @@ void z_early_memcpy(void *dst, const void *src, size_t n)
|
|||
*(d_byte++) = *(s_byte++);
|
||||
n--;
|
||||
}
|
||||
|
||||
return (void)dst;
|
||||
}
|
||||
|
||||
__boot_func
|
||||
|
@ -69,7 +67,6 @@ void z_early_memset(void *dst, int c, size_t n)
|
|||
*(d_byte++) = c_byte;
|
||||
n--;
|
||||
}
|
||||
return (void)dst;
|
||||
}
|
||||
|
||||
void *relocate_code_setup(void)
|
||||
|
|
|
@ -1007,7 +1007,7 @@ void z_impl_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>
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ void z_impl_test_helpers_log_setup(void)
|
|||
#ifdef CONFIG_USERSPACE
|
||||
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>
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue