git: 8604ba742313 - main - arm: allwinner: a10_timer: Plug set but not used variable

From: Emmanuel Vadot <manu_at_FreeBSD.org>
Date: Mon, 21 Feb 2022 10:12:08 UTC
The branch main has been updated by manu:

URL: https://cgit.FreeBSD.org/src/commit/?id=8604ba7423134df2dd285becba3dd980b9d6baed

commit 8604ba7423134df2dd285becba3dd980b9d6baed
Author:     Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2022-02-21 10:02:53 +0000
Commit:     Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2022-02-21 10:08:14 +0000

    arm: allwinner: a10_timer: Plug set but not used variable
    
    Sponsored by:   Beckhoff Automation GmbH & Co. KG
---
 sys/arm/allwinner/a10_timer.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/sys/arm/allwinner/a10_timer.c b/sys/arm/allwinner/a10_timer.c
index 1812e9bc85ec..239ae10e0c95 100644
--- a/sys/arm/allwinner/a10_timer.c
+++ b/sys/arm/allwinner/a10_timer.c
@@ -171,13 +171,10 @@ static struct ofw_compat_data compat_data[] = {
 static int
 a10_timer_probe(device_t dev)
 {
-	struct a10_timer_softc *sc;
 #if defined(__arm__)
 	u_int soc_family;
 #endif
 
-	sc = device_get_softc(dev);
-
 	if (ofw_bus_search_compatible(dev, compat_data)->ocd_data == 0)
 		return (ENXIO);