mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-26 01:41:27 -05:00
wifi: iwlwifi: mld: silence uninitialized variable warning
The "resp_len" isn't initialized if iwl_dhc_resp_data() fails.
Fixes: b611cf6b57 ("wifi: iwlwifi: mld: add support for DHC_TOOLS_UMAC_GET_TAS_STATUS command")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Acked-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/add9c9e2-3b44-4e0a-a4aa-7326f6425baf@stanley.mountain
[fix typo in commit message]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
committed by
Johannes Berg
parent
378677eb8f
commit
ff4ec537e4
@@ -396,8 +396,8 @@ static ssize_t iwl_dbgfs_tas_get_status_read(struct iwl_mld *mld, char *buf,
|
||||
.data[0] = &cmd,
|
||||
};
|
||||
struct iwl_dhc_tas_status_resp *resp = NULL;
|
||||
u32 resp_len = 0;
|
||||
ssize_t pos = 0;
|
||||
u32 resp_len;
|
||||
u32 status;
|
||||
int ret;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user