1
0
Fork 0

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: Denis Cheng <crquan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
hifive-unleashed-5.1
Denis Cheng 2008-02-02 19:30:01 -07:00 committed by Dan Williams
parent cf8f68aa76
commit e73ef9acfd
1 changed files with 1 additions and 1 deletions

View File

@ -284,7 +284,7 @@ iop_adma_alloc_slots(struct iop_adma_chan *iop_chan, int num_slots,
int slots_per_op)
{
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;
/* start search from the last allocated descrtiptor