Skip to content

Commit

Permalink
async_tx: use LIST_HEAD instead of LIST_HEAD_INIT
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Dan Williams <[email protected]>
  • Loading branch information
crquan authored and djbw committed Feb 6, 2008
1 parent 1367a3d commit cf8f68a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crypto/async_tx/async_tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cf8f68a

Please sign in to comment.