Fix a compile bogon. 'ppbus' is used by two different sets of debug code

in lptout().

Reported by:	several
This commit is contained in:
John Baldwin 2009-01-22 15:35:54 +00:00
parent 6cd58f778c
commit 66a86c3bc1

View file

@ -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)));