From 3ae0742de786ff3f539fd252b7dedfdc459e87c4 Mon Sep 17 00:00:00 2001 From: Jerome Duval Date: Wed, 31 Jul 2013 16:58:12 +0200 Subject: [PATCH] FreeBSD compat layer: fix typo ... introduced in 656e05ec86375a592c360f7f4d2ea321e74cd8ff --- src/libs/compat/freebsd_network/bus.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/compat/freebsd_network/bus.cpp b/src/libs/compat/freebsd_network/bus.cpp index 3353471ad5..288b604aa0 100644 --- a/src/libs/compat/freebsd_network/bus.cpp +++ b/src/libs/compat/freebsd_network/bus.cpp @@ -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");