]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
async_tx: use LIST_HEAD instead of LIST_HEAD_INIT
authorDenis Cheng <crquan@gmail.com>
Sun, 3 Feb 2008 02:29:58 +0000 (19:29 -0700)
committerDan Williams <dan.j.williams@intel.com>
Wed, 6 Feb 2008 17:12:17 +0000 (10:12 -0700)
single list_head variable initialized with LIST_HEAD_INIT could almost
always can be replaced with LIST_HEAD declaration, this shrinks the code
and looks better.

Signed-off-by: Denis Cheng <crquan@gmail.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
crypto/async_tx/async_tx.c

index bc18cbb8ea79562ce05401a5734d8310cf2ea938..f39777f30f604c31c13ebcb92f8305418dcb8ce5 100644 (file)
@@ -57,8 +57,7 @@ static struct chan_ref_percpu *channel_table[DMA_TX_TYPE_END];
  */
 static spinlock_t async_tx_lock;
 
-static struct list_head
-async_tx_master_list = LIST_HEAD_INIT(async_tx_master_list);
+static LIST_HEAD(async_tx_master_list);
 
 /* async_tx_issue_pending_all - start all transactions on all channels */
 void async_tx_issue_pending_all(void)