ide-atapi: remove ide-scsi remnants from ide_transfer_pc()

Signed-off-by: Borislav Petkov <petkovbb@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
This commit is contained in:
Borislav Petkov 2009-01-02 16:12:53 +01:00 committed by Bartlomiej Zolnierkiewicz
parent 152fe1cc38
commit 5fe3110431
1 changed files with 4 additions and 10 deletions

View File

@ -550,8 +550,7 @@ static ide_startstop_t ide_transfer_pc(ide_drive_t *drive)
} }
ireason = ide_read_ireason(drive); ireason = ide_read_ireason(drive);
if (drive->media == ide_tape && if (drive->media == ide_tape)
(drive->dev_flags & IDE_DFLAG_SCSI) == 0)
ireason = ide_wait_ireason(drive, ireason); ireason = ide_wait_ireason(drive, ireason);
if ((ireason & ATAPI_COD) == 0 || (ireason & ATAPI_IO)) { if ((ireason & ATAPI_COD) == 0 || (ireason & ATAPI_IO)) {
@ -569,14 +568,9 @@ static ide_startstop_t ide_transfer_pc(ide_drive_t *drive)
timeout = drive->pc_delay; timeout = drive->pc_delay;
expiry = &ide_delayed_transfer_pc; expiry = &ide_delayed_transfer_pc;
} else { } else {
if (drive->dev_flags & IDE_DFLAG_SCSI) { timeout = (drive->media == ide_floppy) ? WAIT_FLOPPY_CMD
timeout = ide_scsi_get_timeout(pc); : WAIT_TAPE_CMD;
expiry = ide_scsi_expiry; expiry = NULL;
} else {
timeout = (drive->media == ide_floppy) ? WAIT_FLOPPY_CMD
: WAIT_TAPE_CMD;
expiry = NULL;
}
} }
/* Set the interrupt routine */ /* Set the interrupt routine */