libata: kill ata_chk_status()

ata_chk_status() just calls ops->check_status and it only adds
confusion with other status functions.  Kill it.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
Tejun Heo
2008-03-25 22:16:44 +09:00
committed by Jeff Garzik
parent 3d5a3d67a5
commit 6fd3639011
8 changed files with 24 additions and 29 deletions

View File

@@ -1401,11 +1401,6 @@ extern int ata_pci_init_one(struct pci_dev *pdev,
struct scsi_host_template *sht, void *host_priv);
#endif /* CONFIG_PCI */
static inline u8 ata_chk_status(struct ata_port *ap)
{
return ap->ops->check_status(ap);
}
/**
* ata_pause - Flush writes and pause 400 nanoseconds.
* @ap: Port to wait for.
@@ -1439,7 +1434,7 @@ static inline u8 ata_busy_wait(struct ata_port *ap, unsigned int bits,
do {
udelay(10);
status = ata_chk_status(ap);
status = ap->ops->check_status(ap);
max--;
} while (status != 0xff && (status & bits) && (max > 0));