aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2021-12-10 11:45:36 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2021-12-10 11:45:36 +0000
commite02d0cab7bec484fdf108fc6290aa09cecf7cb84 (patch)
tree0e81dbc3c931440c33dc3f151185c15d9884dafe /sys/dev
parentfa5af3219fab0b1640dba02b8201a536171a4ba4 (diff)
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/asmc/asmc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/asmc/asmc.c b/sys/dev/asmc/asmc.c
index 5c10d512361d..24d29ebeb2e0 100644
--- a/sys/dev/asmc/asmc.c
+++ b/sys/dev/asmc/asmc.c
@@ -847,12 +847,16 @@ asmc_wait_ack(device_t dev, uint8_t val, int amount)
static int
asmc_wait(device_t dev, uint8_t val)
{
+#ifdef DEBUG
struct asmc_softc *sc;
+#endif
if (asmc_wait_ack(dev, val, 1000) == 0)
return (0);
+#ifdef DEBUG
sc = device_get_softc(dev);
+#endif
val = val & ASMC_STATUS_MASK;
#ifdef DEBUG