projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb8e0e8
)
block/blk-sysfs.c: replace strict_strtoul() with kstrtoul()
author
Jingoo Han
<jg1.han@samsung.com>
Wed, 11 Sep 2013 21:20:08 +0000
(14:20 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Wed, 11 Sep 2013 22:56:56 +0000
(15:56 -0700)
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>
block/blk-sysfs.c
patch
|
blob
|
blame
|
history
diff --git
a/block/blk-sysfs.c
b/block/blk-sysfs.c
index 5efc5a647183b688fe0e4312c7ad5bcb3dad403b..3aa5b195f4dd45e7519e9053cf1593197efc86bd 100644
(file)
--- 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 =
k
strtoul(page, 10, &v);
if (err || v > UINT_MAX)
return -EINVAL;