]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
dmaengine: sh: rz-dmac: Drop goto instruction and label
authorClaudiu Beznea <claudiu.beznea@tuxon.dev>
Mon, 16 Mar 2026 13:32:48 +0000 (15:32 +0200)
committerVinod Koul <vkoul@kernel.org>
Tue, 17 Mar 2026 10:42:11 +0000 (16:12 +0530)
There is no need to jump to the done label, so return immediately.

Reviewed-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Link: https://patch.msgid.link/20260316133252.240348-5-claudiu.beznea.uj@bp.renesas.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/sh/rz-dmac.c

index 29fa2ad07e3008a657691b321a3dcefff80d7a78..6c9bfe39a11ef17f34bfd68aefed4ba4d4e64161 100644 (file)
@@ -705,7 +705,7 @@ static void rz_dmac_irq_handle_channel(struct rz_dmac_chan *channel)
 
                scoped_guard(spinlock_irqsave, &channel->vc.lock)
                        rz_dmac_ch_writel(channel, CHCTRL_DEFAULT, CHCTRL, 1);
-               goto done;
+               return;
        }
 
        /*
@@ -713,8 +713,6 @@ static void rz_dmac_irq_handle_channel(struct rz_dmac_chan *channel)
         * zeros to CHCTRL is just ignored by HW.
         */
        rz_dmac_ch_writel(channel, CHCTRL_CLREND, CHCTRL, 1);
-done:
-       return;
 }
 
 static irqreturn_t rz_dmac_irq_handler(int irq, void *dev_id)