git: a0aa910fd4ec - main - emac_drain_rxfifo: Use a void cast instead of a dummy variable.

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

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

commit a0aa910fd4ec87fe12c56332095f3da180e7710a
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-09 00:25:14 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-04-09 00:25:14 +0000

    emac_drain_rxfifo: Use a void cast instead of a dummy variable.
---
 sys/arm/allwinner/if_emac.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sys/arm/allwinner/if_emac.c b/sys/arm/allwinner/if_emac.c
index 5110ce2f9fb4..ded5e6fc4bbd 100644
--- a/sys/arm/allwinner/if_emac.c
+++ b/sys/arm/allwinner/if_emac.c
@@ -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