From: Denis Cheng Date: Sun, 3 Feb 2008 02:30:01 +0000 (-0700) Subject: iop-adma: use LIST_HEAD instead of LIST_HEAD_INIT X-Git-Tag: v2.6.25-rc1~514^2~4 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=e73ef9acfd30f36bf7c60237ecffe7bbca8068d6;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: Andrew Morton Signed-off-by: Dan Williams --- diff --git a/drivers/dma/iop-adma.c b/drivers/dma/iop-adma.c index e5c62b75f36..b011b5ae22a 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