Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Feb 2022 10:12:07 GMT
From:      Emmanuel Vadot <manu@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 89f8aa7d41b9 - main - pmic: rockchip: Plug set but not used variable
Message-ID:  <202202211012.21LAC7pK010054@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by manu:

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

commit 89f8aa7d41b914d50dbffe4efdcf51b4a77ba84f
Author:     Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2022-02-21 09:55:43 +0000
Commit:     Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2022-02-21 10:08:12 +0000

    pmic: rockchip: Plug set but not used variable
    
    Sponsored by:   Beckhoff Automation GmbH & Co. KG
---
 sys/dev/iicbus/pmic/rockchip/rk8xx_regulators.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/iicbus/pmic/rockchip/rk8xx_regulators.c b/sys/dev/iicbus/pmic/rockchip/rk8xx_regulators.c
index 6480c10deeb8..74bf2ab6ff73 100644
--- a/sys/dev/iicbus/pmic/rockchip/rk8xx_regulators.c
+++ b/sys/dev/iicbus/pmic/rockchip/rk8xx_regulators.c
@@ -48,7 +48,7 @@ static int rk8xx_regnode_set_voltage(struct regnode *regnode, int min_uvolt,
 static int rk8xx_regnode_get_voltage(struct regnode *regnode, int *uvolt);
 
 /* #define	dprintf(sc, format, arg...)	device_printf(sc->base_dev, "%s: " format, __func__, arg) */
-#define	dprintf(sc, format, arg...)
+#define	dprintf(sc, format, arg...) (sc = sc)
 
 static int
 rk8xx_regnode_init(struct regnode *regnode)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202202211012.21LAC7pK010054>