From: Johannes Berg Date: Thu, 14 Jan 2016 09:55:22 +0000 (+0100) Subject: iwlwifi: mvm: fix debugfs signedness warning X-Git-Tag: v4.9.8~2476^2~79^2~2^2~63 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=27e070d3d3c2f6ab925ffd7c54814cabd95db51c;p=platform%2Fkernel%2Flinux-rpi3.git iwlwifi: mvm: fix debugfs signedness warning Using kstrtouint() with a signed int isn't really right, use kstrotoint() instead. Signed-off-by: Johannes Berg Signed-off-by: Emmanuel Grumbach --- diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c b/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c index 90500e2..8059efa 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;