Skip to content

Commit 417c7d0

Browse files
caihuoqvinodkoul
authored andcommitted
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>
1 parent b6f2f03 commit 417c7d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/dma/ppc4xx/adma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1686,8 +1686,8 @@ static struct ppc440spe_adma_desc_slot *ppc440spe_adma_alloc_slots(
16861686
{
16871687
struct ppc440spe_adma_desc_slot *iter = NULL, *_iter;
16881688
struct ppc440spe_adma_desc_slot *alloc_start = NULL;
1689-
struct list_head chain = LIST_HEAD_INIT(chain);
16901689
int slots_found, retry = 0;
1690+
LIST_HEAD(chain);
16911691

16921692

16931693
BUG_ON(!num_slots || !slots_per_op);

0 commit comments

Comments
 (0)