summaryrefslogtreecommitdiffstats
path: root/drivers/ide
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide')
-rw-r--r--drivers/ide/ide-atapi.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/ide/ide-atapi.c b/drivers/ide/ide-atapi.c
index d5249dfc5546..0e9eeb08da2d 100644
--- a/drivers/ide/ide-atapi.c
+++ b/drivers/ide/ide-atapi.c
@@ -31,10 +31,7 @@ ide_startstop_t ide_pc_intr(ide_drive_t *drive, struct ide_atapi_pc *pc,
debug_log("Enter %s - interrupt handler\n", __func__);
if (pc->flags & PC_FLAG_TIMEDOUT) {
- if (drive->media == ide_floppy || drive->media == ide_tape)
- drive->pc_callback(drive);
- else
- pc->callback(drive);
+ drive->pc_callback(drive);
return ide_stopped;
}
@@ -100,10 +97,7 @@ cmd_finished:
return ide_stopped;
}
/* Command finished - Call the callback function */
- if (drive->media == ide_floppy || drive->media == ide_tape)
- drive->pc_callback(drive);
- else
- pc->callback(drive);
+ drive->pc_callback(drive);
return ide_stopped;
}
OpenPOWER on IntegriCloud