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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) +