The branch main has been updated by adrian:

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

commit 633d178c63bef1110acde1932f97eb90da8881e8
Author:     Adrian Chadd <[email protected]>
AuthorDate: 2022-09-12 02:35:02 +0000
Commit:     Adrian Chadd <[email protected]>
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);
 
 }

Reply via email to