From 9ad5422f2743a47ca724c2a7261734e6664c8b07 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Wed, 13 Apr 2022 16:08:22 -0700 Subject: [PATCH] arm sp804: Remove unused variables. --- sys/arm/arm/sp804.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sys/arm/arm/sp804.c b/sys/arm/arm/sp804.c index e45541b0abe..b0f08923c80 100644 --- a/sys/arm/arm/sp804.c +++ b/sys/arm/arm/sp804.c @@ -167,12 +167,9 @@ static int sp804_timer_intr(void *arg) { struct sp804_timer_softc *sc = arg; - static uint32_t prev = 0; - uint32_t x = 0; - x = sp804_timer_tc_read_4(SP804_TIMER1_VALUE); + (void)sp804_timer_tc_read_4(SP804_TIMER1_VALUE); - prev =x ; sp804_timer_tc_write_4(SP804_TIMER2_INTCLR, 1); if (sc->et_enabled) { if (sc->et.et_active) {