]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ide: no need to read Status and Error registers for "empty" taskfile requests
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 27 Mar 2009 11:46:31 +0000 (12:46 +0100)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 27 Mar 2009 11:46:31 +0000 (12:46 +0100)
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/ide-io.c

index 4a97a97e56c40206ff42ac75e68534c5dda21347..45fc18ff73cb22c9c55662d5878bf5c55b930e41 100644 (file)
@@ -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;
 }