Commit 8c125363 authored by Sergey Shtylyov's avatar Sergey Shtylyov Committed by Damien Le Moal

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: default avatarSergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: default avatarDamien Le Moal <dlemoal@kernel.org>
parent d14d41cc
...@@ -135,11 +135,11 @@ static ssize_t ata_scsi_park_store(struct device *device, ...@@ -135,11 +135,11 @@ static ssize_t ata_scsi_park_store(struct device *device,
struct scsi_device *sdev = to_scsi_device(device); struct scsi_device *sdev = to_scsi_device(device);
struct ata_port *ap; struct ata_port *ap;
struct ata_device *dev; struct ata_device *dev;
long int input; int input;
unsigned long flags; unsigned long flags;
int rc; int rc;
rc = kstrtol(buf, 10, &input); rc = kstrtoint(buf, 10, &input);
if (rc) if (rc)
return rc; return rc;
if (input < -2) if (input < -2)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment