Skip to content

Commit

Permalink
libata: convert NCQ test in ata_qc_issue() to ata_is_ncq()
Browse files Browse the repository at this point in the history
I missed one while converting to ata_is_*() protocol test helpers.
Convert it.  Pointed out by Jeff Garzik.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Tejun Heo authored and Jeff Garzik committed Jan 23, 2008
1 parent 40f46f1 commit 1973a02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ata/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -5990,7 +5990,7 @@ void ata_qc_issue(struct ata_queued_cmd *qc)
*/
WARN_ON(ap->ops->error_handler && ata_tag_valid(link->active_tag));

if (prot == ATA_PROT_NCQ) {
if (ata_is_ncq(prot)) {
WARN_ON(link->sactive & (1 << qc->tag));

if (!link->sactive)
Expand Down

0 comments on commit 1973a02

Please sign in to comment.