aboutsummaryrefslogtreecommitdiff
path: root/sys/arm
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-04-13 23:08:22 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2022-04-13 23:08:22 +0000
commit9ad5422f2743a47ca724c2a7261734e6664c8b07 (patch)
tree6a128c199c9d21af431dde945d851c0dc742c34b /sys/arm
parent09f2892eee7f05aa7c9e4743d295d8eb72298cbd (diff)
downloadsrc-9ad5422f2743a47ca724c2a7261734e6664c8b07.tar.gz
src-9ad5422f2743a47ca724c2a7261734e6664c8b07.zip
arm sp804: Remove unused variables.
Diffstat (limited to 'sys/arm')
-rw-r--r--sys/arm/arm/sp804.c5
1 files changed, 1 insertions, 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) {