From: Jingoo Han Date: Fri, 19 Jul 2013 07:01:26 +0000 (+0900) Subject: ide: replace strict_strtol() with kstrtol() X-Git-Tag: firefly_0821_release~176^2~5418^2~4 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=79c8fa0b6bfa6953352a8e73b7105ac268e02743;p=firefly-linux-kernel-4.4.55.git ide: replace strict_strtol() with kstrtol() The usage of strict_strtol() is not preferred, because strict_strtol() is obsolete. Thus, kstrtol() should be used. Signed-off-by: Jingoo Han Signed-off-by: David S. Miller --- diff --git a/drivers/ide/ide-park.c b/drivers/ide/ide-park.c index 6ab9ab2a5081..f41558a0bcd1 100644 --- 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;