-/* $OpenBSD: pci_machdep.c,v 1.58 2013/11/06 10:40:36 mpi Exp $ */
+/* $OpenBSD: pci_machdep.c,v 1.59 2014/04/19 11:53:42 kettenis Exp $ */
/* $NetBSD: pci_machdep.c,v 1.3 2003/05/07 21:33:58 fvdl Exp $ */
/*-
pcireg_t reg;
int off;
- if (pci_get_capability(pc, tag, PCI_CAP_MSI, &off, ®) == 0)
- panic("%s: no msi capability", __func__);
- pci_conf_write(pc, tag, off, reg & ~PCI_MSI_MC_MSIE);
+ if (pci_get_capability(pc, tag, PCI_CAP_MSI, &off, ®))
+ pci_conf_write(pc, tag, off, reg & ~PCI_MSI_MC_MSIE);
}
int
-/* $OpenBSD: pci_machdep.c,v 1.77 2013/11/06 10:40:36 mpi Exp $ */
+/* $OpenBSD: pci_machdep.c,v 1.78 2014/04/19 11:53:42 kettenis Exp $ */
/* $NetBSD: pci_machdep.c,v 1.28 1997/06/06 23:29:17 thorpej Exp $ */
/*-
pcireg_t reg;
int off;
- if (pci_get_capability(pc, tag, PCI_CAP_MSI, &off, ®) == 0)
- panic("%s: no msi capability", __func__);
-
- pci_conf_write(pc, tag, off, reg &= ~PCI_MSI_MC_MSIE);
+ if (pci_get_capability(pc, tag, PCI_CAP_MSI, &off, ®))
+ pci_conf_write(pc, tag, off, reg &= ~PCI_MSI_MC_MSIE);
apic_maxlevel[ih->ih_vec] = 0;
apic_intrhand[ih->ih_vec] = NULL;