aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2015-09-24 16:15:02 -0400
committerLuca Coelho <luciano.coelho@intel.com>2015-10-05 07:33:31 -0400
commite6c21be665cab08325ee1f99e76497b5ffa924a9 (patch)
tree2980d4201f2a5e0cf27d09cac96a2e1de0925d78
parent1191f646bb913feba4239a7ca45e5edb09324869 (diff)
iwlwifi: mvm: fix signedness warnings in ToF debugfs
Using an int* instead of u32* as the kstrtou32() output argument obviously results in signedness warnings, change that. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
-rw-r--r--drivers/net/wireless/iwlwifi/mvm/debugfs-vif.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/debugfs-vif.c b/drivers/net/wireless/iwlwifi/mvm/debugfs-vif.c
index 5dc1686100d2..398bef6f4f61 100644
--- a/drivers/net/wireless/iwlwifi/mvm/debugfs-vif.c
+++ b/drivers/net/wireless/iwlwifi/mvm/debugfs-vif.c
@@ -511,7 +511,8 @@ static ssize_t iwl_dbgfs_tof_enable_write(struct ieee80211_vif *vif,
511{ 511{
512 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); 512 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
513 struct iwl_mvm *mvm = mvmvif->mvm; 513 struct iwl_mvm *mvm = mvmvif->mvm;
514 int value, ret = -EINVAL; 514 u32 value;
515 int ret = -EINVAL;
515 char *data; 516 char *data;
516 517
517 mutex_lock(&mvm->mutex); 518 mutex_lock(&mvm->mutex);
@@ -599,7 +600,8 @@ static ssize_t iwl_dbgfs_tof_responder_params_write(struct ieee80211_vif *vif,
599{ 600{
600 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); 601 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
601 struct iwl_mvm *mvm = mvmvif->mvm; 602 struct iwl_mvm *mvm = mvmvif->mvm;
602 int value, ret = 0; 603 u32 value;
604 int ret = 0;
603 char *data; 605 char *data;
604 606
605 mutex_lock(&mvm->mutex); 607 mutex_lock(&mvm->mutex);
@@ -822,7 +824,8 @@ static ssize_t iwl_dbgfs_tof_range_request_write(struct ieee80211_vif *vif,
822{ 824{
823 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); 825 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
824 struct iwl_mvm *mvm = mvmvif->mvm; 826 struct iwl_mvm *mvm = mvmvif->mvm;
825 int value, ret = 0; 827 u32 value;
828 int ret = 0;
826 char *data; 829 char *data;
827 830
828 mutex_lock(&mvm->mutex); 831 mutex_lock(&mvm->mutex);
@@ -1023,7 +1026,8 @@ static ssize_t iwl_dbgfs_tof_range_req_ext_write(struct ieee80211_vif *vif,
1023{ 1026{
1024 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); 1027 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
1025 struct iwl_mvm *mvm = mvmvif->mvm; 1028 struct iwl_mvm *mvm = mvmvif->mvm;
1026 int value, ret = 0; 1029 u32 value;
1030 int ret = 0;
1027 char *data; 1031 char *data;
1028 1032
1029 mutex_lock(&mvm->mutex); 1033 mutex_lock(&mvm->mutex);
@@ -1127,8 +1131,8 @@ static ssize_t iwl_dbgfs_tof_range_abort_write(struct ieee80211_vif *vif,
1127{ 1131{
1128 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); 1132 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);
1129 struct iwl_mvm *mvm = mvmvif->mvm; 1133 struct iwl_mvm *mvm = mvmvif->mvm;
1130 int value, ret = 0; 1134 u32 value;
1131 int abort_id; 1135 int abort_id, ret = 0;
1132 char *data; 1136 char *data;
1133 1137
1134 mutex_lock(&mvm->mutex); 1138 mutex_lock(&mvm->mutex);