style: arch: 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:04 +07:00 committed by Henrik Brix Andersen
parent af4527e131
commit 9955b0bd6f
2 changed files with 5 additions and 5 deletions

View File

@ -32,7 +32,7 @@ void xtensa_switch(void *switch_to, void **switched_from);
static ALWAYS_INLINE void arch_switch(void *switch_to, void **switched_from)
{
return xtensa_switch(switch_to, switched_from);
xtensa_switch(switch_to, switched_from);
}
#ifdef CONFIG_KERNEL_COHERENCE

View File

@ -41,7 +41,7 @@ static ALWAYS_INLINE uint8_t sys_read8(mem_addr_t addr)
static ALWAYS_INLINE void sys_write8(uint8_t data, mem_addr_t addr)
{
return z_soc_sys_write8(data, addr);
z_soc_sys_write8(data, addr);
}
static ALWAYS_INLINE uint16_t sys_read16(mem_addr_t addr)
@ -51,7 +51,7 @@ static ALWAYS_INLINE uint16_t sys_read16(mem_addr_t addr)
static ALWAYS_INLINE void sys_write16(uint16_t data, mem_addr_t addr)
{
return z_soc_sys_write16(data, addr);
z_soc_sys_write16(data, addr);
}
static ALWAYS_INLINE uint32_t sys_read32(mem_addr_t addr)
@ -61,7 +61,7 @@ static ALWAYS_INLINE uint32_t sys_read32(mem_addr_t addr)
static ALWAYS_INLINE void sys_write32(uint32_t data, mem_addr_t addr)
{
return z_soc_sys_write32(data, addr);
z_soc_sys_write32(data, addr);
}
static ALWAYS_INLINE uint64_t sys_read64(mem_addr_t addr)
@ -71,7 +71,7 @@ static ALWAYS_INLINE uint64_t sys_read64(mem_addr_t addr)
static ALWAYS_INLINE void sys_write64(uint64_t data, mem_addr_t addr)
{
return z_soc_sys_write64(data, addr);
z_soc_sys_write64(data, addr);
}
#endif /* CONFIG_RISCV_SOC_HAS_CUSTOM_SYS_IO */