mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/3] fs/9p: remove obsolete simple_strto<foo>
@ 2013-01-18  9:39 Abhijit Pawar
  0 siblings, 0 replies; only message in thread
From: Abhijit Pawar @ 2013-01-18  9:39 UTC (permalink / raw)
  To: akpm, Eric Van Hensbergen, Ron Minnich, Latchesar Ionkov
  Cc: v9fs-developer, linux-kernel, Abhijit Pawar

This patch replace the obsolete simple_strto<foo> with kstrto<foo>.

Signed-off-by: Abhijit Pawar <abhi.c.pawar@gmail.com>
---
 fs/9p/v9fs.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/fs/9p/v9fs.c b/fs/9p/v9fs.c
index d934f04..6ac48fc 100644
--- a/fs/9p/v9fs.c
+++ b/fs/9p/v9fs.c
@@ -112,7 +112,7 @@ static int v9fs_parse_options(struct v9fs_session_info *v9ses, char *opts)
 	substring_t args[MAX_OPT_ARGS];
 	char *p;
 	int option = 0;
-	char *s, *e;
+	char *s;
 	int ret = 0;
 
 	/* setup defaults */
@@ -249,9 +249,8 @@ static int v9fs_parse_options(struct v9fs_session_info *v9ses, char *opts)
 				v9ses->flags |= V9FS_ACCESS_CLIENT;
 			} else {
 				v9ses->flags |= V9FS_ACCESS_SINGLE;
-				v9ses->uid = simple_strtoul(s, &e, 10);
-				if (*e != '\0') {
-					ret = -EINVAL;
+				ret = kstrtouint(s, 10, &v9ses->uid);
+				if (ret) {
 					pr_info("Unknown access argument %s\n",
 						s);
 					kfree(s);
-- 
1.7.7.6


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-01-18  9:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-18  9:39 [PATCH 1/3] fs/9p: remove obsolete simple_strto<foo> Abhijit Pawar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®