summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2016-01-14 12:55:22 +0300
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>2016-02-01 17:40:21 +0300
commit27e070d3d3c2f6ab925ffd7c54814cabd95db51c (patch)
tree17d88c754eeb785fae4707441cff675d7bd111bb /drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c
parentd8f7c5115d09e4b6b72b5b33414853aaa39bf837 (diff)
downloadlinux-27e070d3d3c2f6ab925ffd7c54814cabd95db51c.tar.xz
iwlwifi: mvm: fix debugfs signedness warning
Using kstrtouint() with a signed int isn't really right, use kstrotoint() instead. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c')
-rw-r--r--drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c b/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c
index 90500e2d107b..8059efafcb80 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c
@@ -983,7 +983,7 @@ static ssize_t iwl_dbgfs_cont_recording_write(struct iwl_mvm *mvm,
trans->cfg->device_family != IWL_DEVICE_FAMILY_8000)
return -EOPNOTSUPP;
- ret = kstrtouint(buf, 0, &rec_mode);
+ ret = kstrtoint(buf, 0, &rec_mode);
if (ret)
return ret;