From 520bba14ef7a550f243676d8495bbeb8f37ff085 Mon Sep 17 00:00:00 2001 From: brad Date: Mon, 15 Dec 2014 20:15:48 +0000 Subject: [PATCH] Consistency with the pci_intr_map bits. ok sf@ --- sys/dev/pci/virtio_pci.c | 4 ++-- 1 file 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; } -- 2.20.1