projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6f2f03
)
dmaengine: ppc4xx: Make use of the helper macro LIST_HEAD()
author
Cai Huoqing
<cai.huoqing@linux.dev>
Wed, 9 Feb 2022 03:22:19 +0000
(11:22 +0800)
committer
Vinod Koul
<vkoul@kernel.org>
Fri, 11 Mar 2022 10:09:09 +0000
(15:39 +0530)
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>
drivers/dma/ppc4xx/adma.c
patch
|
blob
|
history
diff --git
a/drivers/dma/ppc4xx/adma.c
b/drivers/dma/ppc4xx/adma.c
index 5e46e347e28b1effe58b782c03f5301c94f8f989..6b5e91f26afcf7da17b29e934386aeb8a1b8f7f4 100644
(file)
--- 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);