diff options
author | Denis Cheng <crquan@gmail.com> | 2008-02-02 21:29:58 -0500 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2008-02-06 12:12:17 -0500 |
commit | cf8f68aa76e8e12f9dcbba3ffe61fb9f2a3a0c2b (patch) | |
tree | f53fa3040cfd8fcc47eb8aaed60a0a79181cd9b2 /crypto/async_tx/async_tx.c | |
parent | 1367a3d310afc1ce758c8b94a0dc77834b4494a0 (diff) |
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: Denis Cheng <crquan@gmail.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'crypto/async_tx/async_tx.c')
-rw-r--r-- | crypto/async_tx/async_tx.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/async_tx/async_tx.c b/crypto/async_tx/async_tx.c index bc18cbb8ea79..f39777f30f60 100644 --- a/crypto/async_tx/async_tx.c +++ b/crypto/async_tx/async_tx.c | |||
@@ -57,8 +57,7 @@ static struct chan_ref_percpu *channel_table[DMA_TX_TYPE_END]; | |||
57 | */ | 57 | */ |
58 | static spinlock_t async_tx_lock; | 58 | static spinlock_t async_tx_lock; |
59 | 59 | ||
60 | static struct list_head | 60 | static LIST_HEAD(async_tx_master_list); |
61 | async_tx_master_list = LIST_HEAD_INIT(async_tx_master_list); | ||
62 | 61 | ||
63 | /* async_tx_issue_pending_all - start all transactions on all channels */ | 62 | /* async_tx_issue_pending_all - start all transactions on all channels */ |
64 | void async_tx_issue_pending_all(void) | 63 | void async_tx_issue_pending_all(void) |