aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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