projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a09e9a7
)
ide: replace strict_strtol() with kstrtol()
author
Jingoo Han
<jg1.han@samsung.com>
Fri, 19 Jul 2013 07:01:26 +0000
(16:01 +0900)
committer
David S. Miller
<davem@davemloft.net>
Thu, 5 Sep 2013 19:21:29 +0000
(15:21 -0400)
The usage of strict_strtol() is not preferred, because
strict_strtol() is obsolete. Thus, kstrtol() should be
used.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ide/ide-park.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/ide/ide-park.c
b/drivers/ide/ide-park.c
index 6ab9ab2a5081eba538b43abf738f549562cb166b..f41558a0bcd1742a75503a52028399e093d46403 100644
(file)
--- a/
drivers/ide/ide-park.c
+++ b/
drivers/ide/ide-park.c
@@
-116,8
+116,10
@@
ssize_t ide_park_store(struct device *dev, struct device_attribute *attr,
long int input;
int rc;
- rc = strict_strtol(buf, 10, &input);
- if (rc || input < -2)
+ rc = kstrtol(buf, 10, &input);
+ if (rc)
+ return rc;
+ if (input < -2)
return -EINVAL;
if (input > MAX_PARK_TIMEOUT) {
input = MAX_PARK_TIMEOUT;