git: aeb70a6707f7 - main - arm64: allwinner: axp81x: 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:01 UTC
The branch main has been updated by manu:

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

commit aeb70a6707f79ab9f31cb812ff7550a7c68f4fb1
Author:     Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2022-02-21 09:39:05 +0000
Commit:     Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2022-02-21 10:08:02 +0000

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

diff --git a/sys/arm/allwinner/axp81x.c b/sys/arm/allwinner/axp81x.c
index df083ec49e32..8df781c87a0b 100644
--- a/sys/arm/allwinner/axp81x.c
+++ b/sys/arm/allwinner/axp81x.c
@@ -758,11 +758,9 @@ axp8xx_write(device_t dev, uint8_t reg, uint8_t val)
 static int
 axp8xx_regnode_init(struct regnode *regnode)
 {
-	struct axp8xx_reg_sc *sc;
 	struct regnode_std_param *param;
 	int rv, udelay;
 
-	sc = regnode_get_softc(regnode);
 	param = regnode_get_stdparam(regnode);
 	if (param->min_uvolt == 0)
 		return (0);