From: Bartlomiej Zolnierkiewicz Date: Fri, 27 Mar 2009 11:46:31 +0000 (+0100) Subject: ide: no need to read Status and Error registers for "empty" taskfile requests X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=5e76acd588c125fbd37390e44868dcb07cadbe4a;p=linux-2.6-omap-h63xx.git ide: no need to read Status and Error registers for "empty" taskfile requests Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/ide/ide-io.c b/drivers/ide/ide-io.c index 4a97a97e56c..45fc18ff73c 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; }