diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-09-11 17:20:08 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-11 18:56:56 -0400 |
commit | ed751e683c563be64322b9bfa0f0f7e5da9bd37c (patch) | |
tree | 26924e471815468d5cb49c5f989c5f2058e100e8 /block | |
parent | bb8e0e84b30afc9827931c9773d75d5c99fcddff (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-sysfs.c b/block/blk-sysfs.c index 5efc5a647183..3aa5b195f4dd 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) | |||
29 | int err; | 29 | int err; |
30 | unsigned long v; | 30 | unsigned long v; |
31 | 31 | ||
32 | err = strict_strtoul(page, 10, &v); | 32 | err = kstrtoul(page, 10, &v); |
33 | if (err || v > UINT_MAX) | 33 | if (err || v > UINT_MAX) |
34 | return -EINVAL; | 34 | return -EINVAL; |
35 | 35 | ||