ti_adc: Use void cast instead of a dummy variable.
This commit is contained in:
parent
5431925300
commit
ce71fb38d9
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user