iwlwifi: pcie: use u32* argument to iwl_trans_get_fw_monitor_len()
authorJohannes Berg <johannes.berg@intel.com>
Fri, 9 Nov 2018 09:58:53 +0000 (10:58 +0100)
committerLuca Coelho <luciano.coelho@intel.com>
Tue, 29 Jan 2019 14:10:31 +0000 (16:10 +0200)
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>
drivers/net/wireless/intel/iwlwifi/pcie/trans.c

index 472a85d..f742815 100644 (file)
@@ -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) +