iwlwifi: mvm: fix debugfs signedness warning
authorJohannes Berg <johannes.berg@intel.com>
Thu, 14 Jan 2016 09:55:22 +0000 (10:55 +0100)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 1 Feb 2016 14:40:21 +0000 (16:40 +0200)
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>
drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c

index 90500e2d107b60ada39c82adaacedc9a5051cb7e..8059efafcb80a86bd4a1762902591841aed18cd8 100644 (file)
@@ -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;