summaryrefslogtreecommitdiffstats
path: root/sys/dev/ppbus/ppb_msq.c
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2011-11-22 11:35:24 +0000
committerattilio <attilio@FreeBSD.org>2011-11-22 11:35:24 +0000
commit6fbdb01e9a83261fd7ed6a324b968df6a46bfed8 (patch)
tree9caff2614daf6287dbac7d0e991c1a6325164b63 /sys/dev/ppbus/ppb_msq.c
parent0b82f36a9ca5d1ec455633a57e2d996699726fbc (diff)
downloadFreeBSD-src-6fbdb01e9a83261fd7ed6a324b968df6a46bfed8.zip
FreeBSD-src-6fbdb01e9a83261fd7ed6a324b968df6a46bfed8.tar.gz
- Use ppb_assert_locked() rather than using explicit mtx_assert call
- Make ppbus code agnostic in regard of INVARIANTS option MFC after: 2 weeks
Diffstat (limited to 'sys/dev/ppbus/ppb_msq.c')
-rw-r--r--sys/dev/ppbus/ppb_msq.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/ppbus/ppb_msq.c b/sys/dev/ppbus/ppb_msq.c
index 6de67ce..8aba5ec 100644
--- a/sys/dev/ppbus/ppb_msq.c
+++ b/sys/dev/ppbus/ppb_msq.c
@@ -117,13 +117,10 @@ mode2xfer(device_t bus, struct ppb_device *ppbdev, int opcode)
int
ppb_MS_init(device_t bus, device_t dev, struct ppb_microseq *loop, int opcode)
{
-#ifdef INVARIANTS
- struct ppb_data *ppb = device_get_softc(bus);
-#endif
struct ppb_device *ppbdev = (struct ppb_device *)device_get_ivars(dev);
struct ppb_xfer *xfer = mode2xfer(bus, ppbdev, opcode);
- mtx_assert(ppb->ppc_lock, MA_OWNED);
+ ppb_assert_locked(bus);
xfer->loop = loop;
return (0);
OpenPOWER on IntegriCloud