summaryrefslogtreecommitdiffstats
path: root/drivers/ata/libata-scsi.c
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2016-07-14 02:05:43 +0200
committerTejun Heo <tj@kernel.org>2016-07-14 16:44:57 +0200
commit179b310ae77ea4f924fe338af5c8983c3f339098 (patch)
tree5b08dec2296ee5c829a4a751535b50d16ce4cb6a /drivers/ata/libata-scsi.c
parentlibata: return boolean values from ata_is_* (diff)
downloadlinux-179b310ae77ea4f924fe338af5c8983c3f339098.tar.xz
linux-179b310ae77ea4f924fe338af5c8983c3f339098.zip
libata: use ata_is_ncq() accessors
Use accessor functions instead of the raw value. Signed-off-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/ata/libata-scsi.c')
-rw-r--r--drivers/ata/libata-scsi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c
index 3dca0d15c469..0447a391fb7a 100644
--- a/drivers/ata/libata-scsi.c
+++ b/drivers/ata/libata-scsi.c
@@ -3130,8 +3130,8 @@ static unsigned int ata_scsi_pass_thru(struct ata_queued_cmd *qc)
tf->command = cdb[9];
}
- /* For NCQ commands with FPDMA protocol, copy the tag value */
- if (tf->protocol == ATA_PROT_NCQ)
+ /* For NCQ commands copy the tag value */
+ if (ata_is_ncq(tf->protocol))
tf->nsect = qc->tag << 3;
/* enforce correct master/slave bit */