iwlwifi: mvm: use LIST_HEAD() macro
authorJohannes Berg <johannes.berg@intel.com>
Wed, 31 Aug 2016 20:16:11 +0000 (22:16 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Mon, 19 Sep 2016 08:29:34 +0000 (11:29 +0300)
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>
drivers/net/wireless/intel/iwlwifi/mvm/ops.c

index 3eccd89b957049aa9bb64ae5ddf3ec72e2cf8c54..75f3ca0504fd31d9afa1501aa4815a169bfdd50e 100644 (file)
@@ -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) */