提交 42b9ab7a 编写于 作者: J Jingoo Han 提交者: Tejun Heo

libata: 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: NJingoo Han <jg1.han@samsung.com>
Signed-off-by: NTejun Heo <tj@kernel.org>
上级 eac27f04
...@@ -206,8 +206,10 @@ static ssize_t ata_scsi_park_store(struct device *device, ...@@ -206,8 +206,10 @@ static ssize_t ata_scsi_park_store(struct device *device,
unsigned long flags; unsigned long flags;
int rc; int rc;
rc = strict_strtol(buf, 10, &input); rc = kstrtol(buf, 10, &input);
if (rc || input < -2) if (rc)
return rc;
if (input < -2)
return -EINVAL; return -EINVAL;
if (input > ATA_TMOUT_MAX_PARK) { if (input > ATA_TMOUT_MAX_PARK) {
rc = -EOVERFLOW; rc = -EOVERFLOW;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册