lkml.org 
[lkml]   [2012]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 3/4] include/sunrpc: remove obsolete simple_strto<foo>
Date
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


\
 
 \ /
  Last update: 2012-12-07 13:41    [W:1.848 / U:0.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site