diff options
author | Jens Axboe <axboe@kernel.dk> | 2018-05-11 20:51:06 +0200 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2018-05-11 22:10:43 +0200 |
commit | 2e2cc676cee8962cdc82a23723df2fb394d35c64 (patch) | |
tree | b2e65fc638505a6c0def547447639fddd4fb7ddf /drivers/ata/libata-scsi.c | |
parent | libata: bump ->qc_active to a 64-bit type (diff) | |
download | linux-2e2cc676cee8962cdc82a23723df2fb394d35c64.tar.xz 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-scsi.c')
-rw-r--r-- | drivers/ata/libata-scsi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c index 28e1af2bae5f..143cdad7d81a 100644 --- a/drivers/ata/libata-scsi.c +++ b/drivers/ata/libata-scsi.c @@ -5120,7 +5120,7 @@ int ata_sas_allocate_tag(struct ata_port *ap) tag = tag < max_queue ? tag : 0; /* the last tag is reserved for internal command. */ - if (tag == ATA_TAG_INTERNAL) + if (ata_tag_internal(tag)) continue; if (!test_and_set_bit(tag, &ap->sas_tag_allocated)) { |