mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 04:56:13 +02:00
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>
This commit is contained in:
parent
f1cbb0a8ca
commit
990c274256
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user