git: bce1b42f99e6 - main - aw_gmacclk: Remove unused variables.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Sat, 09 Apr 2022 00:28:04 UTC
The branch main has been updated by jhb:

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

commit bce1b42f99e673d05239c3dd6b3c0e8b70b17bc9
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-09 00:25:14 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-04-09 00:25:14 +0000

    aw_gmacclk: Remove unused variables.
---
 sys/arm/allwinner/aw_gmacclk.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/sys/arm/allwinner/aw_gmacclk.c b/sys/arm/allwinner/aw_gmacclk.c
index ba93ea1d4c4a..0b54f87f2984 100644
--- a/sys/arm/allwinner/aw_gmacclk.c
+++ b/sys/arm/allwinner/aw_gmacclk.c
@@ -125,22 +125,18 @@ static int
 aw_gmacclk_set_mux(struct clknode *clk, int index)
 {
 	struct aw_gmacclk_sc *sc;
-	uint32_t val, clk_src, pit, txc_div;
-	int error;
+	uint32_t val, clk_src, pit;
 
 	sc = clknode_get_softc(clk);
-	error = 0;
 
 	switch (index) {
 	case CLK_IDX_MII:
 		clk_src = GMAC_CLK_SRC_MII;
 		pit = GMAC_CLK_PIT_MII;
-		txc_div = EMAC_TXC_DIV_CFG_25MHZ;
 		break;
 	case CLK_IDX_RGMII:
 		clk_src = GMAC_CLK_SRC_RGMII;
 		pit = GMAC_CLK_PIT_RGMII;
-		txc_div = EMAC_TXC_DIV_CFG_125MHZ;
 		break;
 	default:
 		return (ENXIO);