git: b65d223e111a - stable/13 - arm64: allwinner: aw_sid: Plug set but not used variable Sponsored by: Beckhoff Automation GmbH & Co. KG

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

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

commit b65d223e111a56015a75fc2fcbcc4c3bdb88cb2e
Author:     Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2022-02-21 09:38:06 +0000
Commit:     Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2022-05-16 13:15:42 +0000

    arm64: allwinner: aw_sid: Plug set but not used variable
    Sponsored by:   Beckhoff Automation GmbH & Co. KG
    
    (cherry picked from commit 34abc89413a4c14f68b3a8c54a8bc5b6e1d2d787)
---
 sys/arm/allwinner/aw_sid.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/sys/arm/allwinner/aw_sid.c b/sys/arm/allwinner/aw_sid.c
index 4c949770d58f..755a8bbaab3d 100644
--- a/sys/arm/allwinner/aw_sid.c
+++ b/sys/arm/allwinner/aw_sid.c
@@ -364,7 +364,6 @@ aw_sid_read(device_t dev, uint32_t offset, uint32_t size, uint8_t *buffer)
 static int
 aw_sid_sysctl(SYSCTL_HANDLER_ARGS)
 {
-	struct aw_sid_softc *sc;
 	device_t dev = arg1;
 	enum aw_sid_fuse_id fuse = arg2;
 	uint8_t data[32];
@@ -372,8 +371,6 @@ aw_sid_sysctl(SYSCTL_HANDLER_ARGS)
 	uint32_t size;
 	int ret, i;
 
-	sc = device_get_softc(dev);
-
 	/* Get the size of the efuse data */
 	size = 0;
 	aw_sid_get_fuse(fuse, NULL, &size);