Skip to content

Commit ff4ec53

Browse files
Dan Carpenterjmberg-intel
authored andcommitted
wifi: iwlwifi: mld: silence uninitialized variable warning
The "resp_len" isn't initialized if iwl_dhc_resp_data() fails. Fixes: b611cf6 ("wifi: iwlwifi: mld: add support for DHC_TOOLS_UMAC_GET_TAS_STATUS command") Signed-off-by: Dan Carpenter <[email protected]> Acked-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/[email protected] [fix typo in commit message] Signed-off-by: Johannes Berg <[email protected]>
1 parent 378677e commit ff4ec53

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/wireless/intel/iwlwifi/mld

1 file changed

+1
-1
lines changed

drivers/net/wireless/intel/iwlwifi/mld/debugfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,8 +396,8 @@ static ssize_t iwl_dbgfs_tas_get_status_read(struct iwl_mld *mld, char *buf,
396396
.data[0] = &cmd,
397397
};
398398
struct iwl_dhc_tas_status_resp *resp = NULL;
399+
u32 resp_len = 0;
399400
ssize_t pos = 0;
400-
u32 resp_len;
401401
u32 status;
402402
int ret;
403403

0 commit comments

Comments
 (0)