diff options
author | Johannes Berg <johannes.berg@intel.com> | 2016-08-31 16:16:11 -0400 |
---|---|---|
committer | Luca Coelho <luciano.coelho@intel.com> | 2016-09-19 04:29:35 -0400 |
commit | 0979a913f879ea39504200d83fb9f275a555a58d (patch) | |
tree | d8280859453d1f31f4d0679fa047d8ac66dd70c7 /drivers | |
parent | 8098203f26b4fd4b4ef5281b2e77d49ab6d9a3b4 (diff) |
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: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/intel/iwlwifi/pcie/rx.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/pcie/rx.c b/drivers/net/wireless/intel/iwlwifi/pcie/rx.c index 78cb6d2314d9..6fe5546dc773 100644 --- a/drivers/net/wireless/intel/iwlwifi/pcie/rx.c +++ b/drivers/net/wireless/intel/iwlwifi/pcie/rx.c | |||
@@ -487,15 +487,13 @@ static void iwl_pcie_rx_allocator(struct iwl_trans *trans) | |||
487 | 487 | ||
488 | while (pending) { | 488 | while (pending) { |
489 | int i; | 489 | int i; |
490 | struct list_head local_allocated; | 490 | LIST_HEAD(local_allocated); |
491 | gfp_t gfp_mask = GFP_KERNEL; | 491 | gfp_t gfp_mask = GFP_KERNEL; |
492 | 492 | ||
493 | /* Do not post a warning if there are only a few requests */ | 493 | /* Do not post a warning if there are only a few requests */ |
494 | if (pending < RX_PENDING_WATERMARK) | 494 | if (pending < RX_PENDING_WATERMARK) |
495 | gfp_mask |= __GFP_NOWARN; | 495 | gfp_mask |= __GFP_NOWARN; |
496 | 496 | ||
497 | INIT_LIST_HEAD(&local_allocated); | ||
498 | |||
499 | for (i = 0; i < RX_CLAIM_REQ_ALLOC;) { | 497 | for (i = 0; i < RX_CLAIM_REQ_ALLOC;) { |
500 | struct iwl_rx_mem_buffer *rxb; | 498 | struct iwl_rx_mem_buffer *rxb; |
501 | struct page *page; | 499 | struct page *page; |