summaryrefslogtreecommitdiffstats
path: root/drivers/ata/libata-core.c
diff options
context:
space:
mode:
authorJens Axboe2018-05-11 20:51:06 +0200
committerTejun Heo2018-05-11 22:10:43 +0200
commit2e2cc676cee8962cdc82a23723df2fb394d35c64 (patch)
treeb2e65fc638505a6c0def547447639fddd4fb7ddf /drivers/ata/libata-core.c
parentlibata: bump ->qc_active to a 64-bit type (diff)
downloadkernel-qcow2-linux-2e2cc676cee8962cdc82a23723df2fb394d35c64.tar.gz
kernel-qcow2-linux-2e2cc676cee8962cdc82a23723df2fb394d35c64.tar.xz
kernel-qcow2-linux-2e2cc676cee8962cdc82a23723df2fb394d35c64.zip
libata: use ata_tag_internal() consistently
Some check for the value directly, use the provided helper instead. Also make it return a bool, since that's what it does. Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/ata/libata-core.c')
-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 b079c3b5ec27..8fd352d4c190 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -759,7 +759,7 @@ int ata_build_rw_tf(struct ata_taskfile *tf, struct ata_device *dev,
tf->flags |= ATA_TFLAG_ISADDR | ATA_TFLAG_DEVICE;
tf->flags |= tf_flags;
- if (ata_ncq_enabled(dev) && likely(tag != ATA_TAG_INTERNAL)) {
+ if (ata_ncq_enabled(dev) && !ata_tag_internal(tag)) {
/* yay, NCQ */
if (!lba_48_ok(block, n_block))
return -ERANGE;