Skip to content

Commit

Permalink
ide: no need to read Status and Error registers for "empty" taskfile …
Browse files Browse the repository at this point in the history
…requests

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Mar 27, 2009
1 parent a09485d commit 5e76acd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/ide/ide-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -337,9 +337,7 @@ static ide_startstop_t execute_drive_cmd (ide_drive_t *drive,
#ifdef DEBUG
printk("%s: DRIVE_CMD (null)\n", drive->name);
#endif
(void)hwif->tp_ops->read_status(hwif);

ide_complete_rq(drive, ide_read_error(drive));
ide_complete_rq(drive, 0);

return ide_stopped;
}
Expand Down

0 comments on commit 5e76acd

Please sign in to comment.