emac_drain_rxfifo: Use a void cast instead of a dummy variable.

This commit is contained in:
John Baldwin 2022-04-08 17:25:14 -07:00
parent f6abb39b5d
commit a0aa910fd4

View File

@ -284,10 +284,9 @@ emac_reset(struct emac_softc *sc)
static void
emac_drain_rxfifo(struct emac_softc *sc)
{
uint32_t data;
while (EMAC_READ_REG(sc, EMAC_RX_FBC) > 0)
data = EMAC_READ_REG(sc, EMAC_RX_IO_DATA);
(void)EMAC_READ_REG(sc, EMAC_RX_IO_DATA);
}
static void