FreeBSD compat layer: fix typo ...

introduced in 656e05ec86
This commit is contained in:
Jerome Duval
2013-07-31 16:58:12 +02:00
parent 17d68fd24c
commit 3ae0742de7
+2 -2
View File
@@ -382,14 +382,14 @@ bus_setup_intr(device_t dev, struct resource *res, int flags,
// this is an msi, enable it
pci_info *info
= &((struct root_device_softc *)dev->root->softc)->pci_info;
if (&((struct root_device_softc *)dev->root->softc)->is_msi) {
if (((struct root_device_softc *)dev->root->softc)->is_msi) {
if (gPCIx86->enable_msi(info->bus, info->device,
info->function) != B_OK) {
device_printf(dev, "enabling msi failed\n");
bus_teardown_intr(dev, res, intr);
return ENODEV;
}
} else if (&((struct root_device_softc *)dev->root->softc)->is_msix) {
} else if (((struct root_device_softc *)dev->root->softc)->is_msix) {
if (gPCIx86->enable_msix(info->bus, info->device,
info->function) != B_OK) {
device_printf(dev, "enabling msix failed\n");