diff options
author | 2022-02-09 11:23:20 +0800 | |
---|---|---|
committer | 2022-02-18 10:40:55 +0200 | |
commit | 990c27425686c4c17ba42c2c6eb80c8c80a51327 (patch) | |
tree | 03c620af8f79c07c0f9f2e78088cab59b879166f /drivers/net/wireless/intel/iwlwifi/fw | |
parent | iwlwifi: mvm: fix off by one in iwl_mvm_stat_iterator_all_macs() (diff) | |
download | linux-990c27425686c4c17ba42c2c6eb80c8c80a51327.tar.gz linux-990c27425686c4c17ba42c2c6eb80c8c80a51327.tar.bz2 linux-990c27425686c4c17ba42c2c6eb80c8c80a51327.zip |
iwlwifi: Make use of the helper macro LIST_HEAD()
Replace "struct list_head head = LIST_HEAD_INIT(head)" with
"LIST_HEAD(head)" to simplify the code.
Signed-off-by: Cai Huoqing <cai.huoqing@linux.dev>
Link: https://lore.kernel.org/r/20220209032322.37472-1-cai.huoqing@linux.dev
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/fw')
-rw-r--r-- | drivers/net/wireless/intel/iwlwifi/fw/dbg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/fw/dbg.c b/drivers/net/wireless/intel/iwlwifi/fw/dbg.c index a08f80b9f357..022bc2bf4402 100644 --- a/drivers/net/wireless/intel/iwlwifi/fw/dbg.c +++ b/drivers/net/wireless/intel/iwlwifi/fw/dbg.c @@ -2604,7 +2604,7 @@ static void iwl_fw_error_dump_data_free(struct iwl_fwrt_dump_data *dump_data) static void iwl_fw_error_ini_dump(struct iwl_fw_runtime *fwrt, struct iwl_fwrt_dump_data *dump_data) { - struct list_head dump_list = LIST_HEAD_INIT(dump_list); + LIST_HEAD(dump_list); struct scatterlist *sg_dump_data; u32 file_len = iwl_dump_ini_file_gen(fwrt, dump_data, &dump_list); |