diff options
author | Daniel Walter <dwalter@google.com> | 2014-06-21 08:06:38 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2014-07-12 18:45:49 -0400 |
commit | 00cfaa943ec30abbc7109b0b918e0b6a0eef07dc (patch) | |
tree | fd38ea6ee80a06878204279184361ffd846155bc /net/sunrpc/xprtsock.c | |
parent | 002160269fcc73a01ca3889d3011afc9b63a53bd (diff) |
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.c | 4 |
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, | |||
3059 | const struct kernel_param *kp, | 3059 | const struct kernel_param *kp, |
3060 | unsigned int min, unsigned int max) | 3060 | unsigned int min, unsigned int max) |
3061 | { | 3061 | { |
3062 | unsigned long num; | 3062 | unsigned int num; |
3063 | int ret; | 3063 | int ret; |
3064 | 3064 | ||
3065 | if (!val) | 3065 | if (!val) |
3066 | return -EINVAL; | 3066 | return -EINVAL; |
3067 | ret = strict_strtoul(val, 0, &num); | 3067 | ret = kstrtouint(val, 0, &num); |
3068 | if (ret == -EINVAL || num < min || num > max) | 3068 | if (ret == -EINVAL || num < min || num > max) |
3069 | return -EINVAL; | 3069 | return -EINVAL; |
3070 | *((unsigned int *)kp->arg) = num; | 3070 | *((unsigned int *)kp->arg) = num; |