From: Johannes Berg Date: Wed, 31 Aug 2016 20:16:11 +0000 (+0200) Subject: iwlwifi: mvm: use LIST_HEAD() macro X-Git-Tag: v4.9.8~1241^2~35^2~7^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8098203f26b4fd4b4ef5281b2e77d49ab6d9a3b4;p=platform%2Fkernel%2Flinux-rpi3.git iwlwifi: mvm: 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 Signed-off-by: Luca Coelho --- diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c index 3eccd89..75f3ca0 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c @@ -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) */