Date: Sat, 9 Apr 2022 00:28:03 GMT From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: a0aa910fd4ec - main - emac_drain_rxfifo: Use a void cast instead of a dummy variable. Message-ID: <202204090028.2390S3SL056820@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204090028.2390S3SL056820>