git: ce71fb38d9a4 - main - ti_adc: Use void cast instead of a dummy variable.

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

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

commit ce71fb38d9a43173b565549396429c34cc6e964d
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-09 01:31:30 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-04-09 01:31:30 +0000

    ti_adc: Use void cast instead of a dummy variable.
---
 sys/arm/ti/ti_adc.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/sys/arm/ti/ti_adc.c b/sys/arm/ti/ti_adc.c
index 766729fcdab3..2a0671bb0759 100644
--- a/sys/arm/ti/ti_adc.c
+++ b/sys/arm/ti/ti_adc.c
@@ -142,7 +142,6 @@ static void
 ti_adc_disable(struct ti_adc_softc *sc)
 {
 	int count;
-	uint32_t data;
 
 	TI_ADC_LOCK_ASSERT(sc);
 
@@ -165,13 +164,13 @@ ti_adc_disable(struct ti_adc_softc *sc)
 	/* Drain the FIFO data. */
 	count = ADC_READ4(sc, ADC_FIFO0COUNT) & ADC_FIFO_COUNT_MSK;
 	while (count > 0) {
-		data = ADC_READ4(sc, ADC_FIFO0DATA);
+		(void)ADC_READ4(sc, ADC_FIFO0DATA);
 		count = ADC_READ4(sc, ADC_FIFO0COUNT) & ADC_FIFO_COUNT_MSK;
 	}
 
 	count = ADC_READ4(sc, ADC_FIFO1COUNT) & ADC_FIFO_COUNT_MSK;
 	while (count > 0) {
-		data = ADC_READ4(sc, ADC_FIFO1DATA);
+		(void)ADC_READ4(sc, ADC_FIFO1DATA);
 		count = ADC_READ4(sc, ADC_FIFO1COUNT) & ADC_FIFO_COUNT_MSK;
 	}