Commit 0979a913 authored by Johannes Berg's avatar Johannes Berg Committed by Luca Coelho

iwlwifi: pcie: use LIST_HEAD() macro

There's no need to declare a list and then init it manually,
just use the LIST_HEAD() macro.
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
parent 8098203f
...@@ -487,15 +487,13 @@ static void iwl_pcie_rx_allocator(struct iwl_trans *trans) ...@@ -487,15 +487,13 @@ static void iwl_pcie_rx_allocator(struct iwl_trans *trans)
while (pending) { while (pending) {
int i; int i;
struct list_head local_allocated; LIST_HEAD(local_allocated);
gfp_t gfp_mask = GFP_KERNEL; gfp_t gfp_mask = GFP_KERNEL;
/* Do not post a warning if there are only a few requests */ /* Do not post a warning if there are only a few requests */
if (pending < RX_PENDING_WATERMARK) if (pending < RX_PENDING_WATERMARK)
gfp_mask |= __GFP_NOWARN; gfp_mask |= __GFP_NOWARN;
INIT_LIST_HEAD(&local_allocated);
for (i = 0; i < RX_CLAIM_REQ_ALLOC;) { for (i = 0; i < RX_CLAIM_REQ_ALLOC;) {
struct iwl_rx_mem_buffer *rxb; struct iwl_rx_mem_buffer *rxb;
struct page *page; struct page *page;
......
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