Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: db8500-prcmu: Remove needless return in three void APIs

Remove needless 'return' in the following void APIs:

prcmu_early_init()
prcmu_system_reset()
prcmu_modem_reset()

Since both the API and callee involved are void functions.

Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20250221-rmv_return-v1-15-cc8dff275827@quicinc.com
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Zijun Hu and committed by
Lee Jones
c105c555 98cf2d50

+3 -3
+3 -3
include/linux/mfd/dbx500-prcmu.h
··· 215 215 216 216 static inline void prcmu_early_init(void) 217 217 { 218 - return db8500_prcmu_early_init(); 218 + db8500_prcmu_early_init(); 219 219 } 220 220 221 221 static inline int prcmu_set_power_state(u8 state, bool keep_ulp_clk, ··· 302 302 303 303 static inline void prcmu_system_reset(u16 reset_code) 304 304 { 305 - return db8500_prcmu_system_reset(reset_code); 305 + db8500_prcmu_system_reset(reset_code); 306 306 } 307 307 308 308 static inline u16 prcmu_get_reset_code(void) ··· 314 314 void prcmu_ac_sleep_req(void); 315 315 static inline void prcmu_modem_reset(void) 316 316 { 317 - return db8500_prcmu_modem_reset(); 317 + db8500_prcmu_modem_reset(); 318 318 } 319 319 320 320 static inline bool prcmu_is_ac_wake_requested(void)