svn commit: r204992 - head/sys/dev/siba
Weongyo Jeong
weongyo at FreeBSD.org
Thu Mar 11 01:35:39 UTC 2010
Author: weongyo
Date: Thu Mar 11 01:35:38 2010
New Revision: 204992
URL: http://svn.freebsd.org/changeset/base/204992
Log:
fixes a compile error if INVARIANTS is disabled.
Pointy hat to: me
Submitted by: Michael Butler <imb at protected-networks dot net>
Modified:
head/sys/dev/siba/siba_core.c
Modified: head/sys/dev/siba/siba_core.c
==============================================================================
--- head/sys/dev/siba/siba_core.c Thu Mar 11 01:02:27 2010 (r204991)
+++ head/sys/dev/siba/siba_core.c Thu Mar 11 01:35:38 2010 (r204992)
@@ -2031,11 +2031,11 @@ siba_pcie_mdio_write(struct siba_pci *sp
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);
}
More information about the svn-src-all
mailing list