Skip to content

Commit c105c55

Browse files
zijun-hulag-linaro
authored andcommitted
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 <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent 98cf2d5 commit c105c55

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/linux/mfd/dbx500-prcmu.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ struct prcmu_fw_version {
215215

216216
static inline void prcmu_early_init(void)
217217
{
218-
return db8500_prcmu_early_init();
218+
db8500_prcmu_early_init();
219219
}
220220

221221
static inline int prcmu_set_power_state(u8 state, bool keep_ulp_clk,
@@ -302,7 +302,7 @@ static inline int prcmu_request_ape_opp_100_voltage(bool enable)
302302

303303
static inline void prcmu_system_reset(u16 reset_code)
304304
{
305-
return db8500_prcmu_system_reset(reset_code);
305+
db8500_prcmu_system_reset(reset_code);
306306
}
307307

308308
static inline u16 prcmu_get_reset_code(void)
@@ -314,7 +314,7 @@ int prcmu_ac_wake_req(void);
314314
void prcmu_ac_sleep_req(void);
315315
static inline void prcmu_modem_reset(void)
316316
{
317-
return db8500_prcmu_modem_reset();
317+
db8500_prcmu_modem_reset();
318318
}
319319

320320
static inline bool prcmu_is_ac_wake_requested(void)

0 commit comments

Comments
 (0)