Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 42b9ab7a authored by Jingoo Han's avatar Jingoo Han Committed by Tejun Heo
Browse files

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: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent eac27f04
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -206,8 +206,10 @@ static ssize_t ata_scsi_park_store(struct device *device,
	unsigned long flags;
	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 > ATA_TMOUT_MAX_PARK) {
		rc = -EOVERFLOW;