diff options
author | jhb <jhb@FreeBSD.org> | 2009-01-22 15:35:54 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2009-01-22 15:35:54 +0000 |
commit | 6b4a126c250d970139633934fa8a0cdbaebb195c (patch) | |
tree | 3675511eb750464adf498f3f9b8ea8c52e8ec85a /sys/dev/ppbus/lpt.c | |
parent | 75d3feba46a045fd2c2ef3984774b259ceaab50f (diff) | |
download | FreeBSD-src-6b4a126c250d970139633934fa8a0cdbaebb195c.zip FreeBSD-src-6b4a126c250d970139633934fa8a0cdbaebb195c.tar.gz |
Fix a compile bogon. 'ppbus' is used by two different sets of debug code
in lptout().
Reported by: several
Diffstat (limited to 'sys/dev/ppbus/lpt.c')
-rw-r--r-- | sys/dev/ppbus/lpt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/ppbus/lpt.c b/sys/dev/ppbus/lpt.c index e4288fc..4c88508 100644 --- a/sys/dev/ppbus/lpt.c +++ b/sys/dev/ppbus/lpt.c @@ -447,7 +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 ppb_assert_locked(ppbus); lprintf(("T %x ", ppb_rstr(ppbus))); |