Commit cf8f68aa authored by Denis Cheng's avatar Denis Cheng Committed by Dan Williams

async_tx: 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.
Signed-off-by: default avatarDenis Cheng <crquan@gmail.com>
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent 1367a3d3
...@@ -57,8 +57,7 @@ static struct chan_ref_percpu *channel_table[DMA_TX_TYPE_END]; ...@@ -57,8 +57,7 @@ static struct chan_ref_percpu *channel_table[DMA_TX_TYPE_END];
*/ */
static spinlock_t async_tx_lock; static spinlock_t async_tx_lock;
static struct list_head static LIST_HEAD(async_tx_master_list);
async_tx_master_list = LIST_HEAD_INIT(async_tx_master_list);
/* async_tx_issue_pending_all - start all transactions on all channels */ /* async_tx_issue_pending_all - start all transactions on all channels */
void async_tx_issue_pending_all(void) void async_tx_issue_pending_all(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment