summaryrefslogtreecommitdiff
path: root/sys/dev/pci/virtio_pci.c
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2014-12-15 20:15:49 +0000
committerBrad Smith <brad@cvs.openbsd.org>2014-12-15 20:15:49 +0000
commit219445c123c4920d61c8a6821c284cf0cdfc8cb4 (patch)
tree3e23a4a41de49dd27c12cccba1ab08418b0ab735 /sys/dev/pci/virtio_pci.c
parentb133c303217c529256818818300fced2c0a04849 (diff)
Consistency with the pci_intr_map bits.
ok sf@
Diffstat (limited to 'sys/dev/pci/virtio_pci.c')
-rw-r--r--sys/dev/pci/virtio_pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/virtio_pci.c b/sys/dev/pci/virtio_pci.c
index 978107178f7..33d51ede3fc 100644
--- a/sys/dev/pci/virtio_pci.c
+++ b/sys/dev/pci/virtio_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: virtio_pci.c,v 1.7 2013/09/22 09:58:46 sf Exp $ */
+/* $OpenBSD: virtio_pci.c,v 1.8 2014/12/15 20:15:48 brad Exp $ */
/* $NetBSD: virtio.c,v 1.3 2011/11/02 23:05:52 njoly Exp $ */
/*
@@ -211,7 +211,7 @@ virtio_pci_attach(struct device *parent, struct device *self, void *aux)
goto fail_1;
}
- if (pci_intr_map_msi(pa, &ih) != 0 && pci_intr_map(pa, &ih)) {
+ if (pci_intr_map_msi(pa, &ih) != 0 && pci_intr_map(pa, &ih) != 0) {
printf("%s: couldn't map interrupt\n", vsc->sc_dev.dv_xname);
goto fail_2;
}