Skip to contentSkip to conversation

crypto/async_tx/async_tx.c: use LIST_HEAD instead of LIST_HEAD_INIT

PATCH In review Denis Cheng 1 participant 1 message Dec 5, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 5/20 crypto/async_tx/async_tx.c: use LIST_HEAD instead of LIST_HEAD_INIT

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.

---
 crypto/async_tx/async_tx.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
crypto/async_tx/async_tx.c +1 -2
index bc18cbb..f39777f 100644
@@ -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)
Signature · 1 line
1.5.3.4