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>
This commit is contained in:

committed by
Tejun Heo

parent
b1c04e80c6
commit
179b310ae7
@@ -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 */
|
||||
|
Reference in New Issue
Block a user