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-Tag: firefly_0821_release~15198^2~42 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5e76acd588c125fbd37390e44868dcb07cadbe4a;p=firefly-linux-kernel-4.4.55.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 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; }