aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-cd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/ide-cd.c')
-rw-r--r--drivers/ide/ide-cd.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c
index 2eadc9d2e965..4c7792fd5f93 100644
--- a/drivers/ide/ide-cd.c
+++ b/drivers/ide/ide-cd.c
@@ -405,15 +405,7 @@ static int cdrom_decode_status(ide_drive_t *drive, u8 stat)
405 405
406end_request: 406end_request:
407 if (stat & ATA_ERR) { 407 if (stat & ATA_ERR) {
408 struct request_queue *q = drive->queue;
409 unsigned long flags;
410
411 spin_lock_irqsave(q->queue_lock, flags);
412 blkdev_dequeue_request(rq);
413 spin_unlock_irqrestore(q->queue_lock, flags);
414
415 hwif->rq = NULL; 408 hwif->rq = NULL;
416
417 return ide_queue_sense_rq(drive, rq) ? 2 : 1; 409 return ide_queue_sense_rq(drive, rq) ? 2 : 1;
418 } else 410 } else
419 return 2; 411 return 2;