Skip to contentSkip to conversation

dcache: replace obsolete simple_strtoul() with kstrtoul()

PATCH New Daeseok Youn 1 participant 1 message Feb 24, 2014 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dcache: replace obsolete simple_strtoul() with kstrtoul()

---
 fs/dcache.c |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
fs/dcache.c +3 -4
index 265e0ce..f360620 100644
@@ -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);
 
Signature · 3 lines
1.7.9.5

---