git: 34abc89413a4 - main - 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, 21 Feb 2022 10:12:00 UTC
The branch main has been updated by manu:

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

commit 34abc89413a4c14f68b3a8c54a8bc5b6e1d2d787
Author:     Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2022-02-21 09:38:06 +0000
Commit:     Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2022-02-21 10:08:00 +0000

    arm64: allwinner: aw_sid: Plug set but not used variable
    Sponsored by:   Beckhoff Automation GmbH & Co. KG
---
 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);