lkml.org 
[lkml]   [2009]   [Feb]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
FromBartlomiej Zolnierkiewicz <>
DateSun, 01 Feb 2009 18:50:40 +0100
Subject[PATCH 13/15] ide: no need to read Status and Error registers for "empty" taskfile requests
From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Subject: [PATCH] ide: no need to read Status and Error registers for "empty" taskfile requests

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
---
drivers/ide/ide-io.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
Index: b/drivers/ide/ide-io.c
===================================================================
--- a/drivers/ide/ide-io.c
+++ b/drivers/ide/ide-io.c
@@ -333,9 +333,7 @@ static ide_startstop_t execute_drive_cmd
#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;
}

\
 
 \ /
  Last update: 2009-02-01 18:55    [from the cache]
©2003-2010