Commit eb0effdf authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Tejun Heo

libata: remove ata_is_nodata

The only caller can just check for !ata_is_data instead.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 35303d5c
...@@ -5044,7 +5044,7 @@ static void ata_verify_xfer(struct ata_queued_cmd *qc) ...@@ -5044,7 +5044,7 @@ static void ata_verify_xfer(struct ata_queued_cmd *qc)
{ {
struct ata_device *dev = qc->dev; struct ata_device *dev = qc->dev;
if (ata_is_nodata(qc->tf.protocol)) if (!ata_is_data(qc->tf.protocol))
return; return;
if ((dev->mwdma_mask || dev->udma_mask) && ata_is_pio(qc->tf.protocol)) if ((dev->mwdma_mask || dev->udma_mask) && ata_is_pio(qc->tf.protocol))
......
...@@ -1070,11 +1070,6 @@ static inline bool ata_is_atapi(u8 prot) ...@@ -1070,11 +1070,6 @@ static inline bool ata_is_atapi(u8 prot)
return ata_prot_flags(prot) & ATA_PROT_FLAG_ATAPI; return ata_prot_flags(prot) & ATA_PROT_FLAG_ATAPI;
} }
static inline bool ata_is_nodata(u8 prot)
{
return !(ata_prot_flags(prot) & ATA_PROT_FLAG_DATA);
}
static inline bool ata_is_pio(u8 prot) static inline bool ata_is_pio(u8 prot)
{ {
return ata_prot_flags(prot) & ATA_PROT_FLAG_PIO; return ata_prot_flags(prot) & ATA_PROT_FLAG_PIO;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment