git: 8fcf690b83ce - main - lpt: Mark ppbus in lptout unused.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 13 Apr 2022 23:09:19 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=8fcf690b83ceb651ab73ecadfb7bd6f82da45c8b
commit 8fcf690b83ceb651ab73ecadfb7bd6f82da45c8b
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-13 23:08:20 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-04-13 23:08:20 +0000
lpt: Mark ppbus in lptout unused.
It is used both in an assertion under INVARIANTS as well as in a
custom debug trace.
---
sys/dev/ppbus/lpt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/dev/ppbus/lpt.c b/sys/dev/ppbus/lpt.c
index f4510b464a97..f87a05e1fcbf 100644
--- a/sys/dev/ppbus/lpt.c
+++ b/sys/dev/ppbus/lpt.c
@@ -447,7 +447,7 @@ lptout(void *arg)
{
struct lpt_data *sc = arg;
device_t dev = sc->sc_dev;
- device_t ppbus;
+ device_t ppbus __unused;
ppbus = device_get_parent(dev);
ppb_assert_locked(ppbus);