Skip to contentSkip to conversation

block: blk-sysfs: replace strict_strtoul() with kstrtoul()

PATCH New Jingoo Han 1 participant 1 message Jul 22, 2013 Block layer

lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

PATCH 1/1 block: blk-sysfs: replace strict_strtoul() with kstrtoul()

The usage of strict_strtoul() is not preferred, because strict_strtoul() is obsolete. Thus, kstrtoul() should be used.

---
 block/blk-sysfs.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
block/blk-sysfs.c +1 -1
index 5efc5a6..3aa5b19 100644
@@ -29,7 +29,7 @@ queue_var_store(unsigned long *var, const char *page, size_t count)
 	int err;
 	unsigned long v;
 
-	err = strict_strtoul(page, 10, &v);
+	err = kstrtoul(page, 10, &v);
 	if (err || v > UINT_MAX)
 		return -EINVAL;
 
Signature · 1 line
1.7.10.4