[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251022073800.1993223-1-cosmin-gabriel.tanislav.xa@renesas.com>
Date: Wed, 22 Oct 2025 10:37:57 +0300
From: Cosmin Tanislav <cosmin-gabriel.tanislav.xa@...esas.com>
To:
Cc: Vinod Koul <vkoul@...nel.org>,
Lad Prabhakar <prabhakar.mahadev-lad.rj@...renesas.com>,
Fabrizio Castro <fabrizio.castro.jz@...esas.com>,
Geert Uytterhoeven <geert+renesas@...der.be>,
dmaengine@...r.kernel.org,
linux-kernel@...r.kernel.org,
Cosmin Tanislav <cosmin-gabriel.tanislav.xa@...esas.com>
Subject: [PATCH] dmaengine: sh: rz_dmac: remove braces around single statement if block
Braces around single statement if blocks are unnecessary, remove them.
Signed-off-by: Cosmin Tanislav <cosmin-gabriel.tanislav.xa@...esas.com>
---
drivers/dma/sh/rz-dmac.c | 15 ++++++---------
1 file changed, 6 insertions(+), 9 deletions(-)
diff --git a/drivers/dma/sh/rz-dmac.c b/drivers/dma/sh/rz-dmac.c
index 1f687b08d6b8..a6db74e86c18 100644
--- a/drivers/dma/sh/rz-dmac.c
+++ b/drivers/dma/sh/rz-dmac.c
@@ -336,13 +336,12 @@ static void rz_dmac_prepare_desc_for_memcpy(struct rz_dmac_chan *channel)
lmdesc->chext = 0;
lmdesc->header = HEADER_LV;
- if (dmac->has_icu) {
+ if (dmac->has_icu)
rzv2h_icu_register_dma_req(dmac->icu.pdev, dmac->icu.dmac_index,
channel->index,
RZV2H_ICU_DMAC_REQ_NO_DEFAULT);
- } else {
+ else
rz_dmac_set_dmars_register(dmac, channel->index, 0);
- }
channel->chcfg = chcfg;
channel->chctrl = CHCTRL_STG | CHCTRL_SETEN;
@@ -393,12 +392,11 @@ static void rz_dmac_prepare_descs_for_slave_sg(struct rz_dmac_chan *channel)
channel->lmdesc.tail = lmdesc;
- if (dmac->has_icu) {
+ if (dmac->has_icu)
rzv2h_icu_register_dma_req(dmac->icu.pdev, dmac->icu.dmac_index,
channel->index, channel->mid_rid);
- } else {
+ else
rz_dmac_set_dmars_register(dmac, channel->index, channel->mid_rid);
- }
channel->chctrl = CHCTRL_SETEN;
}
@@ -671,13 +669,12 @@ static void rz_dmac_device_synchronize(struct dma_chan *chan)
if (ret < 0)
dev_warn(dmac->dev, "DMA Timeout");
- if (dmac->has_icu) {
+ if (dmac->has_icu)
rzv2h_icu_register_dma_req(dmac->icu.pdev, dmac->icu.dmac_index,
channel->index,
RZV2H_ICU_DMAC_REQ_NO_DEFAULT);
- } else {
+ else
rz_dmac_set_dmars_register(dmac, channel->index, 0);
- }
}
/*
--
2.51.1.dirty
Powered by blists - more mailing lists