git: 94429bcfc5f7 - stable/13 - arm: allwinner: a10_timer: Plug set but not used variable

From: Emmanuel Vadot <manu_at_FreeBSD.org>
Date: Mon, 16 May 2022 13:21:27 UTC
The branch stable/13 has been updated by manu:

URL: https://cgit.FreeBSD.org/src/commit/?id=94429bcfc5f7b262fcac19b88d96c972c0dab4c4

commit 94429bcfc5f7b262fcac19b88d96c972c0dab4c4
Author:     Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2022-02-21 10:02:53 +0000
Commit:     Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2022-05-16 13:15:44 +0000

    arm: allwinner: a10_timer: Plug set but not used variable
    
    Sponsored by:   Beckhoff Automation GmbH & Co. KG
    
    (cherry picked from commit 8604ba7423134df2dd285becba3dd980b9d6baed)
---
 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);