From e02d0cab7bec484fdf108fc6290aa09cecf7cb84 Mon Sep 17 00:00:00 2001 From: Mateusz Guzik Date: Fri, 10 Dec 2021 11:45:36 +0000 Subject: [PATCH] asmc: plug set-but-not-unused vars Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/dev/asmc/asmc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/dev/asmc/asmc.c b/sys/dev/asmc/asmc.c index 5c10d512361..24d29ebeb2e 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