]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
fix: remove useless "return" at void functions
authorElyes Haouas <ehaouas@noos.fr>
Mon, 13 Feb 2023 09:46:55 +0000 (10:46 +0100)
committerElyes HAOUAS <ehaouas@noos.fr>
Thu, 16 Feb 2023 13:15:30 +0000 (15:15 +0200)
void functions() returns nothing. So remove useless "return".

found using checkpatch.pl[1]

[1]: https://review.coreboot.org/plugins/gitiles/coreboot/+/refs/heads/master/util/lint/checkpatch.pl

Change-Id: I3daab2abec225a657af48f7d8c215cc554713074
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
drivers/arm/css/mhu/css_mhu_doorbell.c
plat/imx/common/sci/svc/pm/pm_rpc_clnt.c
plat/imx/common/sci/svc/rm/rm_rpc_clnt.c
plat/nvidia/tegra/soc/t194/plat_ras.c

index c51f3b1d78e5d685f2a9b269c490a65a558c396e..479bb21b3c8579c3e6f669843455477532585e12 100644 (file)
@@ -15,7 +15,6 @@ void mhu_ring_doorbell(struct scmi_channel_plat_info *plat_info)
        MHU_RING_DOORBELL(plat_info->db_reg_addr,
                        plat_info->db_modify_mask,
                        plat_info->db_preserve_mask);
-       return;
 }
 
 void mhuv2_ring_doorbell(struct scmi_channel_plat_info *plat_info)
@@ -35,6 +34,4 @@ void mhuv2_ring_doorbell(struct scmi_channel_plat_info *plat_info)
 
        /* clear the access request for the receiver */
        MHU_V2_CLEAR_REQUEST(mhuv2_base);
-
-       return;
 }
index 66a57a13d52f596b2711a6aca8c55559c2037fc2..228cff8b52d1acb46d2e4319a12ce1ecea2947a2 100644 (file)
@@ -412,8 +412,6 @@ void sc_pm_reboot(sc_ipc_t ipc, sc_pm_reset_type_t type)
        RPC_SIZE(&msg) = 2U;
 
        sc_call_rpc(ipc, &msg, SC_TRUE);
-
-       return;
 }
 
 sc_err_t sc_pm_reboot_partition(sc_ipc_t ipc, sc_rm_pt_t pt,
index 16771a5836963733f38e55bbdce30359436f6bc7..2cea01f11b84bb4368dbced7707037f81df50f2c 100644 (file)
@@ -632,8 +632,6 @@ void sc_rm_dump(sc_ipc_t ipc)
        RPC_SIZE(&msg) = 1U;
 
        sc_call_rpc(ipc, &msg, SC_FALSE);
-
-       return;
 }
 
 /**@}*/
index 02f615824771e584710900f77d79a9a40cd63a17..a9fed0ac75df059f0cfead411414a85ad56dfd5a 100644 (file)
@@ -249,7 +249,6 @@ void tegra194_ras_corrected_err_clear(uint64_t *cookie)
         * of range.
         */
        *cookie = 0ULL;
-       return;
 }
 
 /* Function to probe an error from error record group. */