Skip to content

Commit

Permalink
iop-adma: use LIST_HEAD instead of LIST_HEAD_INIT
Browse files Browse the repository at this point in the history
these three list_head are all local variables, but can also use LIST_HEAD.

Signed-off-by: Denis Cheng <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Dan Williams <[email protected]>
  • Loading branch information
crquan authored and djbw committed Feb 6, 2008
1 parent cf8f68a commit e73ef9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/dma/iop-adma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e73ef9a

Please sign in to comment.