summaryrefslogtreecommitdiffstats
path: root/sys/dev/ppbus/ppb_msq.c
diff options
context:
space:
mode:
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