Skip to content

Commit

Permalink
iwlwifi: pcie: use LIST_HEAD() macro
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Berg authored and Luca Coelho committed Sep 19, 2016
1 parent 8098203 commit 0979a91
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/net/wireless/intel/iwlwifi/pcie/rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -487,15 +487,13 @@ static void iwl_pcie_rx_allocator(struct iwl_trans *trans)

while (pending) {
int i;
struct list_head local_allocated;
LIST_HEAD(local_allocated);
gfp_t gfp_mask = GFP_KERNEL;

/* Do not post a warning if there are only a few requests */
if (pending < RX_PENDING_WATERMARK)
gfp_mask |= __GFP_NOWARN;

INIT_LIST_HEAD(&local_allocated);

for (i = 0; i < RX_CLAIM_REQ_ALLOC;) {
struct iwl_rx_mem_buffer *rxb;
struct page *page;
Expand Down

0 comments on commit 0979a91

Please sign in to comment.