projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83c1961
)
dmaengine: at_hdmac: Remove superfluous cast
author
Tudor Ambarus
<tudor.ambarus@microchip.com>
Tue, 25 Oct 2022 09:02:52 +0000
(12:02 +0300)
committer
Vinod Koul
<vkoul@kernel.org>
Fri, 11 Nov 2022 06:45:08 +0000
(12:15 +0530)
Conversions of void * are applied automatically when other pointer types
are assigned to and from void *. Remove the superfluous cast.
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Link:
https://lore.kernel.org/r/20221025090306.297886-1-tudor.ambarus@microchip.com
Link:
https://lore.kernel.org/r/20221025090306.297886-19-tudor.ambarus@microchip.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/at_hdmac.c
patch
|
blob
|
history
diff --git
a/drivers/dma/at_hdmac.c
b/drivers/dma/at_hdmac.c
index
10b6b04
..
fbfb207
100644
(file)
--- a/
drivers/dma/at_hdmac.c
+++ b/
drivers/dma/at_hdmac.c
@@
-603,7
+603,7
@@
static void atc_tasklet(struct tasklet_struct *t)
static irqreturn_t at_dma_interrupt(int irq, void *dev_id)
{
- struct at_dma *atdma =
(struct at_dma *)
dev_id;
+ struct at_dma *atdma = dev_id;
struct at_dma_chan *atchan;
int i;
u32 status, pending, imr;