* [PATCH] libata: convert NCQ test in ata_qc_issue() to ata_is_ncq()
@ 2007-12-05 1:36 Tejun Heo
0 siblings, 0 replies; only message in thread
From: Tejun Heo @ 2007-12-05 1:36 UTC (permalink / raw)
To: Jeff Garzik, IDE/ATA development list
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>
---
drivers/ata/libata-core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index 597e07c..81a6045 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -5960,7 +5960,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)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-12-05 1:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-05 1:36 [PATCH] libata: convert NCQ test in ata_qc_issue() to ata_is_ncq() Tejun Heo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).