ti_adc: Use void cast instead of a dummy variable.

This commit is contained in:
John Baldwin 2022-04-08 18:31:30 -07:00
parent 5431925300
commit ce71fb38d9

View File

@ -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;
}