Skip to content

Commit

Permalink
iwlwifi: mvm: 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 176aa60 commit 8098203
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/net/wireless/intel/iwlwifi/mvm/ops.c
Original file line number Diff line number Diff line change
Expand Up @@ -858,9 +858,7 @@ static void iwl_mvm_async_handlers_wk(struct work_struct *wk)
struct iwl_mvm *mvm =
container_of(wk, struct iwl_mvm, async_handlers_wk);
struct iwl_async_handler_entry *entry, *tmp;
struct list_head local_list;

INIT_LIST_HEAD(&local_list);
LIST_HEAD(local_list);

/* Ensure that we are not in stop flow (check iwl_mvm_mac_stop) */

Expand Down

0 comments on commit 8098203

Please sign in to comment.