summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-09-11 14:20:08 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2013-09-11 15:56:56 -0700
commited751e683c563be64322b9bfa0f0f7e5da9bd37c (patch)
tree26924e471815468d5cb49c5f989c5f2058e100e8 /block
parentbb8e0e84b30afc9827931c9773d75d5c99fcddff (diff)
block/blk-sysfs.c: replace strict_strtoul() with kstrtoul()
The usage of strict_strtoul() is not preferred, because strict_strtoul() is obsolete. Thus, kstrtoul() should be used. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'block')
-rw-r--r--block/blk-sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-sysfs.c b/block/blk-sysfs.c
index 5efc5a64718..3aa5b195f4d 100644
--- a/block/blk-sysfs.c
+++ b/block/blk-sysfs.c
@@ -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;