aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sr_ioctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/sr_ioctl.c')
-rw-r--r--drivers/scsi/sr_ioctl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/sr_ioctl.c b/drivers/scsi/sr_ioctl.c
index d5cebff1d646..ae87d08df588 100644
--- a/drivers/scsi/sr_ioctl.c
+++ b/drivers/scsi/sr_ioctl.c
@@ -306,8 +306,7 @@ int sr_drive_status(struct cdrom_device_info *cdi, int slot)
306 /* we have no changer support */ 306 /* we have no changer support */
307 return -EINVAL; 307 return -EINVAL;
308 } 308 }
309 if (0 == scsi_test_unit_ready(cd->device, SR_TIMEOUT, MAX_RETRIES, 309 if (0 == sr_test_unit_ready(cd->device, &sshdr))
310 &sshdr))
311 return CDS_DISC_OK; 310 return CDS_DISC_OK;
312 311
313 if (!cdrom_get_media_event(cdi, &med)) { 312 if (!cdrom_get_media_event(cdi, &med)) {