summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2015-11-24 19:38:02 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2015-11-24 19:38:02 +0000
commit7adfb1b1c9816a7a0e4bafe3b35949277862a488 (patch)
tree0323ffe7aab0705cdaeaa1fa7066882db0dd4bc6 /sys
parent544c231be09dc03e130e38004e304bf32f4092bb (diff)
Fix inverted condition in previous.
Problem reported by Mikolaj Kucharski.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/sdhc_pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/sdhc_pci.c b/sys/dev/pci/sdhc_pci.c
index c0ae0dc0495..4f5b8c19e10 100644
--- a/sys/dev/pci/sdhc_pci.c
+++ b/sys/dev/pci/sdhc_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sdhc_pci.c,v 1.18 2015/11/21 14:36:08 kettenis Exp $ */
+/* $OpenBSD: sdhc_pci.c,v 1.19 2015/11/24 19:38:01 kettenis Exp $ */
/*
* Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org>
@@ -164,7 +164,7 @@ sdhc_pci_attach(struct device *parent, struct device *self, void *aux)
for (reg = SDHC_PCI_BAR_START + SDHC_PCI_FIRST_BAR(slotinfo) * 4;
reg < SDHC_PCI_BAR_END && nslots > 0;
reg += 4, nslots--) {
- if (pci_mapreg_probe(pa->pa_pc, pa->pa_tag, reg, &type) != 0)
+ if (!pci_mapreg_probe(pa->pa_pc, pa->pa_tag, reg, &type))
break;
if (type == PCI_MAPREG_TYPE_IO || pci_mapreg_map(pa, reg,