aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-03-27 07:46:31 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-03-27 07:46:31 -0400
commit5e76acd588c125fbd37390e44868dcb07cadbe4a (patch)
treee121f47461051ed86147a5c2638c61d28a4a8f0e
parenta09485df9cda49fbde2766c86eb18a9cae585162 (diff)
ide: no need to read Status and Error registers for "empty" taskfile requests
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
-rw-r--r--drivers/ide/ide-io.c4
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,
337#ifdef DEBUG 337#ifdef DEBUG
338 printk("%s: DRIVE_CMD (null)\n", drive->name); 338 printk("%s: DRIVE_CMD (null)\n", drive->name);
339#endif 339#endif
340 (void)hwif->tp_ops->read_status(hwif); 340 ide_complete_rq(drive, 0);
341
342 ide_complete_rq(drive, ide_read_error(drive));
343 341
344 return ide_stopped; 342 return ide_stopped;
345} 343}