DMA Engine development
 help / color / mirror / Atom feed
* [PATCH] dmaengine: ppc4xx: Make use of the helper macro LIST_HEAD()
@ 2022-02-09  3:22 Cai Huoqing
  2022-03-11 10:09 ` Vinod Koul
  0 siblings, 1 reply; 2+ messages in thread
From: Cai Huoqing @ 2022-02-09  3:22 UTC (permalink / raw)
  To: cai.huoqing; +Cc: Vinod Koul, Salah Triki, Jason Wang, dmaengine, linux-kernel

Replace "struct list_head head = LIST_HEAD_INIT(head)" with
"LIST_HEAD(head)" to simplify the code.

Signed-off-by: Cai Huoqing <cai.huoqing@linux.dev>
---
 drivers/dma/ppc4xx/adma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/dma/ppc4xx/adma.c b/drivers/dma/ppc4xx/adma.c
index 5e46e347e28b..6b5e91f26afc 100644
--- a/drivers/dma/ppc4xx/adma.c
+++ b/drivers/dma/ppc4xx/adma.c
@@ -1686,8 +1686,8 @@ static struct ppc440spe_adma_desc_slot *ppc440spe_adma_alloc_slots(
 {
 	struct ppc440spe_adma_desc_slot *iter = NULL, *_iter;
 	struct ppc440spe_adma_desc_slot *alloc_start = NULL;
-	struct list_head chain = LIST_HEAD_INIT(chain);
 	int slots_found, retry = 0;
+	LIST_HEAD(chain);
 
 
 	BUG_ON(!num_slots || !slots_per_op);
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-03-11 10:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-09  3:22 [PATCH] dmaengine: ppc4xx: Make use of the helper macro LIST_HEAD() Cai Huoqing
2022-03-11 10:09 ` Vinod Koul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox