Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5e76acd5 authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz
Browse files

ide: no need to read Status and Error registers for "empty" taskfile requests

parent a09485df
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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;
}