Messages in this thread Patch in this message | | | From | Abhijit Pawar <> | Subject | [PATCH 3/4] include/sunrpc: remove obsolete simple_strto<foo> | Date | Fri, 7 Dec 2012 17:21:36 +0530 |
| |
This patch replace the obsolete simple_strto<foo> with kstrto<foo>
Signed-off-by: Abhijit Pawar <abhi.c.pawar@gmail.com> --- include/linux/sunrpc/cache.h | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/linux/sunrpc/cache.h b/include/linux/sunrpc/cache.h index 5dc9ee4..96d2545 100644 --- a/include/linux/sunrpc/cache.h +++ b/include/linux/sunrpc/cache.h @@ -218,7 +218,7 @@ static inline int get_int(char **bpp, int *anint) { char buf[50]; char *ep; - int rv; + int rv, rc; int len = qword_get(bpp, buf, sizeof(buf)); if (len < 0) @@ -226,8 +226,8 @@ static inline int get_int(char **bpp, int *anint) if (len == 0) return -ENOENT; - rv = simple_strtol(buf, &ep, 0); - if (*ep) + rc = kstrtoint(buf, 0, &rv); + if (rc) return -EINVAL; *anint = rv; -- 1.7.7.6
| |