lkml.org 
[lkml]   [2014]   [Feb]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] dcache: replace obsolete simple_strtoul() with kstrtoul()
Date

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
---
fs/dcache.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/fs/dcache.c b/fs/dcache.c
index 265e0ce..f360620 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -3345,10 +3345,9 @@ EXPORT_SYMBOL(d_tmpfile);
static __initdata unsigned long dhash_entries;
static int __init set_dhash_entries(char *str)
{
- if (!str)
- return 0;
- dhash_entries = simple_strtoul(str, &str, 0);
- return 1;
+ if (str && !kstrtoul(str, 0, &dhash_entries))
+ return 1;
+ return 0;
}
__setup("dhash_entries=", set_dhash_entries);

--
1.7.9.5
---

\
 
 \ /
  Last update: 2014-02-24 13:01    [W:0.342 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site