mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-24 06:09:57 +07:00
iwlwifi: pcie: use u32* argument to iwl_trans_get_fw_monitor_len()
That's what we pass, and we don't want/need any negative values. Found by sparse/smatch. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
This commit is contained in:
parent
4841914ef4
commit
93079fd5c0
@ -3114,7 +3114,7 @@ iwl_trans_pcie_dump_monitor(struct iwl_trans *trans,
|
||||
return len;
|
||||
}
|
||||
|
||||
static int iwl_trans_get_fw_monitor_len(struct iwl_trans *trans, int *len)
|
||||
static int iwl_trans_get_fw_monitor_len(struct iwl_trans *trans, u32 *len)
|
||||
{
|
||||
if (trans->num_blocks) {
|
||||
*len += sizeof(struct iwl_fw_error_dump_data) +
|
||||
|
Loading…
Reference in New Issue
Block a user