summaryrefslogtreecommitdiffstats
path: root/net/sunrpc/xprtsock.c
diff options
context:
space:
mode:
authorDaniel Walter2014-06-21 14:06:38 +0200
committerTrond Myklebust2014-07-13 00:45:49 +0200
commit00cfaa943ec30abbc7109b0b918e0b6a0eef07dc (patch)
treefd38ea6ee80a06878204279184361ffd846155bc /net/sunrpc/xprtsock.c
parentNFS: use ARRAY_SIZE instead of sizeof/sizeof[0] (diff)
downloadkernel-qcow2-linux-00cfaa943ec30abbc7109b0b918e0b6a0eef07dc.tar.gz
kernel-qcow2-linux-00cfaa943ec30abbc7109b0b918e0b6a0eef07dc.tar.xz
kernel-qcow2-linux-00cfaa943ec30abbc7109b0b918e0b6a0eef07dc.zip
replace strict_strto calls
Replace obsolete strict_strto calls with appropriate kstrto calls Signed-off-by: Daniel Walter <dwalter@google.com> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'net/sunrpc/xprtsock.c')
-rw-r--r--net/sunrpc/xprtsock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c
index 8f8589fedfdd..43cd89eacfab 100644
--- a/net/sunrpc/xprtsock.c
+++ b/net/sunrpc/xprtsock.c
@@ -3059,12 +3059,12 @@ static int param_set_uint_minmax(const char *val,
const struct kernel_param *kp,
unsigned int min, unsigned int max)
{
- unsigned long num;
+ unsigned int num;
int ret;
if (!val)
return -EINVAL;
- ret = strict_strtoul(val, 0, &num);
+ ret = kstrtouint(val, 0, &num);
if (ret == -EINVAL || num < min || num > max)
return -EINVAL;
*((unsigned int *)kp->arg) = num;