Commit 93079fd5 authored by Johannes Berg's avatar Johannes Berg Committed by Luca Coelho

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: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
parent 4841914e
...@@ -3114,7 +3114,7 @@ iwl_trans_pcie_dump_monitor(struct iwl_trans *trans, ...@@ -3114,7 +3114,7 @@ iwl_trans_pcie_dump_monitor(struct iwl_trans *trans,
return len; 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) { if (trans->num_blocks) {
*len += sizeof(struct iwl_fw_error_dump_data) + *len += sizeof(struct iwl_fw_error_dump_data) +
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment