summaryrefslogtreecommitdiffstats
path: root/sys/dev/ppbus/lpt.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/lpt.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/lpt.c')
-rw-r--r--sys/dev/ppbus/lpt.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/ppbus/lpt.c b/sys/dev/ppbus/lpt.c
index 18d46ae..3a28efd2 100644
--- a/sys/dev/ppbus/lpt.c
+++ b/sys/dev/ppbus/lpt.c
@@ -447,10 +447,9 @@ lptout(void *arg)
{
struct lpt_data *sc = arg;
device_t dev = sc->sc_dev;
-#if defined(INVARIANTS) || defined(LPT_DEBUG)
- device_t ppbus = device_get_parent(dev);
-#endif
+ device_t ppbus;
+ ppbus = device_get_parent(dev);
ppb_assert_locked(ppbus);
lprintf(("T %x ", ppb_rstr(ppbus)));
if (sc->sc_state & OPEN) {
OpenPOWER on IntegriCloud