summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorweongyo <weongyo@FreeBSD.org>2010-03-11 01:35:38 +0000
committerweongyo <weongyo@FreeBSD.org>2010-03-11 01:35:38 +0000
commitb3d52a36205753b1b2ce062ba003e434781700f8 (patch)
tree1c92a1755f5f87b7590fb9c3daaa2d7a4e161665
parent39f5294e3ce68a1632da2385973c3f60fcf3102b (diff)
downloadFreeBSD-src-b3d52a36205753b1b2ce062ba003e434781700f8.zip
FreeBSD-src-b3d52a36205753b1b2ce062ba003e434781700f8.tar.gz
fixes a compile error if INVARIANTS is disabled.
Pointy hat to: me Submitted by: Michael Butler <imb at protected-networks dot net>
-rw-r--r--sys/dev/siba/siba_core.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/siba/siba_core.c b/sys/dev/siba/siba_core.c
index 44eaef5..99a9fe9 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);
}
OpenPOWER on IntegriCloud