Commit e73ef9ac authored by Denis Cheng's avatar Denis Cheng Committed by Dan Williams

iop-adma: use LIST_HEAD instead of LIST_HEAD_INIT

these three list_head are all local variables, but can also use LIST_HEAD.
Signed-off-by: default avatarDenis Cheng <crquan@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent cf8f68aa
...@@ -284,7 +284,7 @@ iop_adma_alloc_slots(struct iop_adma_chan *iop_chan, int num_slots, ...@@ -284,7 +284,7 @@ iop_adma_alloc_slots(struct iop_adma_chan *iop_chan, int num_slots,
int slots_per_op) int slots_per_op)
{ {
struct iop_adma_desc_slot *iter, *_iter, *alloc_start = NULL; struct iop_adma_desc_slot *iter, *_iter, *alloc_start = NULL;
struct list_head chain = LIST_HEAD_INIT(chain); LIST_HEAD(chain);
int slots_found, retry = 0; int slots_found, retry = 0;
/* start search from the last allocated descrtiptor /* start search from the last allocated descrtiptor
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment