From b3d52a36205753b1b2ce062ba003e434781700f8 Mon Sep 17 00:00:00 2001 From: weongyo Date: Thu, 11 Mar 2010 01:35:38 +0000 Subject: [PATCH] fixes a compile error if INVARIANTS is disabled. Pointy hat to: me Submitted by: Michael Butler --- sys/dev/siba/siba_core.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/dev/siba/siba_core.c b/sys/dev/siba/siba_core.c index 44eaef5241a..99a9fe9bfb6 100644 --- a/sys/dev/siba/siba_core.c +++ b/sys/dev/siba/siba_core.c @@ -2031,11 +2031,11 @@ siba_pcie_mdio_write(struct siba_pci *spc, uint8_t device, uint8_t address, uint32_t siba_dma_translation(device_t dev) { - struct siba_dev_softc *sd = device_get_ivars(dev); - struct siba_softc *siba = sd->sd_bus; - KASSERT(siba->siba_type == SIBA_TYPE_PCI, - ("unsupported bustype %d\n", siba->siba_type)); + KASSERT(device_get_ivars(dev)->sd_bus->siba_type == SIBA_TYPE_PCI, + ("unsupported bustype %d\n", + device_get_ivars(dev)->sd_bus->siba_type)); + return (SIBA_PCI_DMA); } -- 2.45.2