summaryrefslogtreecommitdiff
path: root/sys/dev/pci/ahci.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2011-04-07 15:30:17 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2011-04-07 15:30:17 +0000
commit470f59fa3f11b7317fc5907cfef6043f2104bcc6 (patch)
tree50aedec19587d2927b807e6719da0022055c56df /sys/dev/pci/ahci.c
parent1d2ed5cc87538f3c2a6389c586a609a8b73610b7 (diff)
Do not use NULL in integer comparisons. No functional change.
ok matthew@ tedu@, also eyeballed by at least krw@ oga@ kettenis@ jsg@
Diffstat (limited to 'sys/dev/pci/ahci.c')
-rw-r--r--sys/dev/pci/ahci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/ahci.c b/sys/dev/pci/ahci.c
index ffe4e968d28..299b387a026 100644
--- a/sys/dev/pci/ahci.c
+++ b/sys/dev/pci/ahci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ahci.c,v 1.173 2011/04/03 17:04:19 krw Exp $ */
+/* $OpenBSD: ahci.c,v 1.174 2011/04/07 15:30:16 miod Exp $ */
/*
* Copyright (c) 2006 David Gwynne <dlg@openbsd.org>
@@ -2475,7 +2475,7 @@ ahci_issue_pending_ncq_commands(struct ahci_port *ap)
* If a port multiplier is attached to the port, we can only
* issue commands for one of its ports at a time.
*/
- if (ap->ap_sactive != NULL &&
+ if (ap->ap_sactive != 0 &&
ap->ap_pmp_ncq_port != nextccb->ccb_xa.pmp_port) {
return;
}