summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorChristoph Hellwig2016-07-16 15:16:41 +0200
committerTejun Heo2016-07-19 02:55:37 +0200
commiteb0effdf53b061bd57d8efc86032454e79487263 (patch)
tree6c5443303f32afaa759347050fbb48951d4d67a4 /drivers
parentata: make lba_{28,48}_ok() use ATA_MAX_SECTORS{,_LBA48} (diff)
downloadkernel-qcow2-linux-eb0effdf53b061bd57d8efc86032454e79487263.tar.gz
kernel-qcow2-linux-eb0effdf53b061bd57d8efc86032454e79487263.tar.xz
kernel-qcow2-linux-eb0effdf53b061bd57d8efc86032454e79487263.zip
libata: remove ata_is_nodata
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ata/libata-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index 522848a6c43a..0749f71cfb1e 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -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))