git: 9ad5422f2743 - main - arm sp804: Remove unused variables.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Wed, 13 Apr 2022 23:09:57 UTC
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=9ad5422f2743a47ca724c2a7261734e6664c8b07

commit 9ad5422f2743a47ca724c2a7261734e6664c8b07
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-13 23:08:22 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-04-13 23:08:22 +0000

    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 e45541b0abe5..b0f08923c803 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) {