Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dmaengine: ppc4xx: Make use of the helper macro LIST_HEAD()

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>
Link: https://lore.kernel.org/r/20220209032221.37211-1-cai.huoqing@linux.dev
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Cai Huoqing and committed by
Vinod Koul
417c7d0d b6f2f035

+1 -1
+1 -1
drivers/dma/ppc4xx/adma.c
··· 1686 1686 { 1687 1687 struct ppc440spe_adma_desc_slot *iter = NULL, *_iter; 1688 1688 struct ppc440spe_adma_desc_slot *alloc_start = NULL; 1689 - struct list_head chain = LIST_HEAD_INIT(chain); 1690 1689 int slots_found, retry = 0; 1690 + LIST_HEAD(chain); 1691 1691 1692 1692 1693 1693 BUG_ON(!num_slots || !slots_per_op);