]> git.karo-electronics.de Git - linux-beck.git/commitdiff
libata: remove ata_is_nodata
authorChristoph Hellwig <hch@lst.de>
Sat, 16 Jul 2016 13:16:41 +0000 (22:16 +0900)
committerTejun Heo <tj@kernel.org>
Tue, 19 Jul 2016 00:55:37 +0000 (20:55 -0400)
The only caller can just check for !ata_is_data instead.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/libata-core.c
include/linux/libata.h

index 522848a6c43ac7fde85eee8680189f2cb1551d66..0749f71cfb1ee8b36c7ee1d0a44fcb402315e30e 100644 (file)
@@ -5044,7 +5044,7 @@ static void ata_verify_xfer(struct ata_queued_cmd *qc)
 {
        struct ata_device *dev = qc->dev;
 
-       if (ata_is_nodata(qc->tf.protocol))
+       if (!ata_is_data(qc->tf.protocol))
                return;
 
        if ((dev->mwdma_mask || dev->udma_mask) && ata_is_pio(qc->tf.protocol))
index 1abd6690c7761a8c3fe6ec0de5d8c063f70d110e..283b6be6c319c071b46d2ddda64c51c4017ce52b 100644 (file)
@@ -1070,11 +1070,6 @@ static inline bool ata_is_atapi(u8 prot)
        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)
 {
        return ata_prot_flags(prot) & ATA_PROT_FLAG_PIO;