Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Sep 2022 03:10:54 GMT
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 633d178c63be - main - qcom_qup: compilation fixes
Message-ID:  <202209130310.28D3AsuY069827@gitrepo.freebsd.org>

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

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

commit 633d178c63bef1110acde1932f97eb90da8881e8
Author:     Adrian Chadd <adrian@FreeBSD.org>
AuthorDate: 2022-09-12 02:35:02 +0000
Commit:     Adrian Chadd <adrian@FreeBSD.org>
CommitDate: 2022-09-13 03:10:25 +0000

    qcom_qup: compilation fixes
    
    Fix compilation warning/errors - in this instance we do need the register
    IO.
    
    Reviewed by: imp
    
    Differential Revision: https://reviews.freebsd.org/D36535
---
 sys/dev/qcom_qup/qcom_spi_hw.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/dev/qcom_qup/qcom_spi_hw.c b/sys/dev/qcom_qup/qcom_spi_hw.c
index 6b21fd239f5d..71cbcc671766 100644
--- a/sys/dev/qcom_qup/qcom_spi_hw.c
+++ b/sys/dev/qcom_qup/qcom_spi_hw.c
@@ -723,14 +723,14 @@ qcom_spi_hw_ack_write_pio_fifo(struct qcom_spi_softc *sc)
 int
 qcom_spi_hw_ack_opmode(struct qcom_spi_softc *sc)
 {
-	uint32_t reg;
 
 	QCOM_SPI_ASSERT_LOCKED(sc);
 
 	QCOM_SPI_BARRIER_READ(sc);
-	reg = QCOM_SPI_READ_4(sc, QUP_OPERATIONAL);
+	QCOM_SPI_READ_4(sc, QUP_OPERATIONAL);
 	QCOM_SPI_WRITE_4(sc, QUP_OPERATIONAL, QUP_OP_OUT_SERVICE_FLAG);
 	QCOM_SPI_BARRIER_WRITE(sc);
+
 	return (0);
 
 }



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