projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf8f68a
)
iop-adma: use LIST_HEAD instead of LIST_HEAD_INIT
author
Denis Cheng
<crquan@gmail.com>
Sun, 3 Feb 2008 02:30:01 +0000
(19:30 -0700)
committer
Dan Williams
<dan.j.williams@intel.com>
Wed, 6 Feb 2008 17:12:17 +0000
(10:12 -0700)
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>
drivers/dma/iop-adma.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/dma/iop-adma.c
b/drivers/dma/iop-adma.c
index e5c62b75f36f1adefe418e28d6089fc83dc4f6f9..b011b5ae22a2d327ff7ca9e952d7165c57830db2 100644
(file)
--- a/
drivers/dma/iop-adma.c
+++ b/
drivers/dma/iop-adma.c
@@
-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