aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/libata.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2018-05-11 12:51:06 -0600
committerTejun Heo <tj@kernel.org>2018-05-11 13:10:43 -0700
commit2e2cc676cee8962cdc82a23723df2fb394d35c64 (patch)
treeb2e65fc638505a6c0def547447639fddd4fb7ddf /include/linux/libata.h
parentlibata: bump ->qc_active to a 64-bit type (diff)
downloadlinux-dev-2e2cc676cee8962cdc82a23723df2fb394d35c64.tar.xz
linux-dev-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 'include/linux/libata.h')
-rw-r--r--include/linux/libata.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h
index 2881919b3728..60ce1ba26fdd 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -1491,7 +1491,7 @@ static inline unsigned int ata_tag_valid(unsigned int tag)
return (tag < ATA_MAX_QUEUE) ? 1 : 0;
}
-static inline unsigned int ata_tag_internal(unsigned int tag)
+static inline bool ata_tag_internal(unsigned int tag)
{
return tag == ATA_TAG_INTERNAL;
}