diff options
author | Denis Cheng <crquan@gmail.com> | 2008-02-03 03:30:01 +0100 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2008-02-06 18:12:17 +0100 |
commit | e73ef9acfd30f36bf7c60237ecffe7bbca8068d6 (patch) | |
tree | bf949d319cb87ebc23ee26f650dcf1b39aa794e0 /drivers/dma/iop-adma.c | |
parent | async_tx: use LIST_HEAD instead of LIST_HEAD_INIT (diff) | |
download | linux-e73ef9acfd30f36bf7c60237ecffe7bbca8068d6.tar.xz linux-e73ef9acfd30f36bf7c60237ecffe7bbca8068d6.zip |
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>
Diffstat (limited to 'drivers/dma/iop-adma.c')
-rw-r--r-- | drivers/dma/iop-adma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/iop-adma.c b/drivers/dma/iop-adma.c index e5c62b75f36f..b011b5ae22a2 100644 --- 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 |