summaryrefslogtreecommitdiffstats
path: root/fs/nfs/super.c
diff options
context:
space:
mode:
authorDaniel Walter <sahne@0x90.at>2012-09-26 21:51:46 +0200
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-10-02 00:40:05 +0200
commit7297cb682acb506ada2e01fbc9b447b04d69936c (patch)
tree9babf7878f4a34552fd452e1e30a4d38f24add6e /fs/nfs/super.c
parentNFS: Remove unnecessary semicolons (fs/nfs/client.c) (diff)
downloadlinux-7297cb682acb506ada2e01fbc9b447b04d69936c.tar.xz
linux-7297cb682acb506ada2e01fbc9b447b04d69936c.zip
nfs: replace strict_strto* with kstrto*
[nfs] replace strict_str* with kstr* variants * replace string conversions with newer kstr* functions Signed-off-by: Daniel Walter <sahne@0x90.at> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/super.c')
-rw-r--r--fs/nfs/super.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index 56f02a9bd6d3..a719bc0640b4 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -1112,7 +1112,7 @@ static int nfs_get_option_ul(substring_t args[], unsigned long *option)
string = match_strdup(args);
if (string == NULL)
return -ENOMEM;
- rc = strict_strtoul(string, 10, option);
+ rc = kstrtoul(string, 10, option);
kfree(string);
return rc;
@@ -2681,7 +2681,7 @@ static int param_set_portnr(const char *val, const struct kernel_param *kp)
if (!val)
return -EINVAL;
- ret = strict_strtoul(val, 0, &num);
+ ret = kstrtoul(val, 0, &num);
if (ret == -EINVAL || num > NFS_CALLBACK_MAXPORTNR)
return -EINVAL;
*((unsigned int *)kp->arg) = num;