From: Johannes Berg Date: Fri, 9 Nov 2018 09:58:53 +0000 (+0100) Subject: iwlwifi: pcie: use u32* argument to iwl_trans_get_fw_monitor_len() X-Git-Tag: v5.4-rc1~1543^2~348^2~43^2~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=93079fd5c0597a89f6fa3a1a3334739de10d6b07;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Luca Coelho --- diff --git a/drivers/net/wireless/intel/iwlwifi/pcie/trans.c b/drivers/net/wireless/intel/iwlwifi/pcie/trans.c index 472a85d..f742815 100644 --- a/drivers/net/wireless/intel/iwlwifi/pcie/trans.c +++ b/drivers/net/wireless/intel/iwlwifi/pcie/trans.c @@ -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) +