diff options
author | Sergey Shtylyov <s.shtylyov@omp.ru> | 2023-07-29 23:17:50 +0300 |
---|---|---|
committer | Damien Le Moal <dlemoal@kernel.org> | 2023-08-02 17:37:06 +0900 |
commit | 8c12536378085ed42e2f2b8223fcf82edda6c1c9 (patch) | |
tree | e4ee37a57455abd0e4e75f872286ebc02930265e | |
parent | d14d41cc5aaef138face9d5a145b460e2b63697a (diff) | |
download | linux-stable-8c12536378085ed42e2f2b8223fcf82edda6c1c9.tar.gz linux-stable-8c12536378085ed42e2f2b8223fcf82edda6c1c9.tar.bz2 linux-stable-8c12536378085ed42e2f2b8223fcf82edda6c1c9.zip |
ata: libata-scsi: fix timeout type in ata_scsi_park_store()
ata_scsi_park_store() passes its 'long input' variable (if it's >= 0) to
ata_deadline() that now takes 'unsigned int' -- eliminate unneeded implicit
cast...
Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
-rw-r--r-- | drivers/ata/libata-scsi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c index 370d18aca71e..f39d603f05bc 100644 --- a/drivers/ata/libata-scsi.c +++ b/drivers/ata/libata-scsi.c @@ -135,11 +135,11 @@ static ssize_t ata_scsi_park_store(struct device *device, struct scsi_device *sdev = to_scsi_device(device); struct ata_port *ap; struct ata_device *dev; - long int input; + int input; unsigned long flags; int rc; - rc = kstrtol(buf, 10, &input); + rc = kstrtoint(buf, 10, &input); if (rc) return rc; if (input < -2) |