diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-27 12:46:31 +0100 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-27 12:46:31 +0100 |
commit | 5e76acd588c125fbd37390e44868dcb07cadbe4a (patch) | |
tree | e121f47461051ed86147a5c2638c61d28a4a8f0e /drivers/ide/ide-io.c | |
parent | a09485df9cda49fbde2766c86eb18a9cae585162 (diff) |
ide: no need to read Status and Error registers for "empty" taskfile requests
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-io.c')
-rw-r--r-- | drivers/ide/ide-io.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/ide/ide-io.c b/drivers/ide/ide-io.c index 4a97a97e56c4..45fc18ff73cb 100644 --- a/drivers/ide/ide-io.c +++ b/drivers/ide/ide-io.c @@ -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; } |