ide-scsi: use drive->pc_callback instead of pc->callback
There should be no functionality change resulting from this patch. Signed-off-by: Borislav Petkov <petkovbb@gmail.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
This commit is contained in:
committed by
Bartlomiej Zolnierkiewicz
parent
776bb0270e
commit
db9d286988
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user