git: c0089ba4592e - stable/12 - Fix unused variable warning in rockchip's rk_spi.c

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Sun, 21 Aug 2022 11:29:32 UTC
The branch stable/12 has been updated by dim:

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

commit c0089ba4592ea737ec3f1330c5f4a111e326d00b
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2022-08-14 18:36:13 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2022-08-21 11:18:11 +0000

    Fix unused variable warning in rockchip's rk_spi.c
    
    With clang 15, the following -Werror warning is produced:
    
        sys/arm64/rockchip/rk_spi.c:229:6: error: variable 'cnt' set but not used [-Werror,-Wunused-but-set-variable]
                int cnt = 0;
                    ^
    
    The 'cnt' variable was in rk_spi.c when it was first added, but it
    appears to have been a debugging aid that has never been used, so remove
    it.
    
    MFC after:      3 days
    
    (cherry picked from commit 0fe8ab6851687dc7249e3c5b5df3d6723d1c3e7a)
---
 sys/arm64/rockchip/rk_spi.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sys/arm64/rockchip/rk_spi.c b/sys/arm64/rockchip/rk_spi.c
index 4df1208f40aa..a5f0d93263d8 100644
--- a/sys/arm64/rockchip/rk_spi.c
+++ b/sys/arm64/rockchip/rk_spi.c
@@ -225,12 +225,10 @@ rk_spi_fill_txfifo(struct rk_spi_softc *sc)
 {
 	uint32_t txlevel;
 	txlevel = RK_SPI_READ_4(sc, RK_SPI_TXFLR);
-	int cnt = 0;
 
 	while (sc->txidx < sc->txlen && txlevel < sc->fifo_size) {
 		RK_SPI_WRITE_4(sc, RK_SPI_TXDR, sc->txbuf[sc->txidx++]);
 		txlevel++;
-		cnt++;
 	}
 
 	if (sc->txidx != sc->txlen)