summaryrefslogtreecommitdiff
path: root/sys/dev/pci/pcscp.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/pcscp.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/pcscp.c')
-rw-r--r--sys/dev/pci/pcscp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/pcscp.c b/sys/dev/pci/pcscp.c
index fc496d92e6f..76ac7900300 100644
--- a/sys/dev/pci/pcscp.c
+++ b/sys/dev/pci/pcscp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pcscp.c,v 1.17 2010/06/28 18:31:02 krw Exp $ */
+/* $OpenBSD: pcscp.c,v 1.18 2011/04/07 15:30:16 miod Exp $ */
/* $NetBSD: pcscp.c,v 1.26 2003/10/19 10:25:42 tsutsui Exp $ */
/*-
@@ -171,7 +171,7 @@ pcscp_attach(struct device *parent, struct device *self, void *aux)
int error, rseg;
if (pci_mapreg_map(pa, IO_MAP_REG, PCI_MAPREG_TYPE_IO, 0,
- &iot, &ioh, NULL, NULL, NULL)) {
+ &iot, &ioh, NULL, NULL, 0)) {
printf("%s: unable to map registers\n", sc->sc_dev.dv_xname);
return;
}