git: b66e766d57a4 - main - genet: cnt here is write only and can be removed
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 25 Oct 2022 16:57:40 UTC
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=b66e766d57a4149ef40edbf00e5bbf9908c7c8d8 commit b66e766d57a4149ef40edbf00e5bbf9908c7c8d8 Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2022-10-25 14:52:53 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2022-10-25 16:57:29 +0000 genet: cnt here is write only and can be removed Sponsored by: Netflix --- sys/arm64/broadcom/genet/if_genet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arm64/broadcom/genet/if_genet.c b/sys/arm64/broadcom/genet/if_genet.c index 327af8acbcdd..978106fdfad5 100644 --- a/sys/arm64/broadcom/genet/if_genet.c +++ b/sys/arm64/broadcom/genet/if_genet.c @@ -1012,7 +1012,7 @@ gen_start_locked(struct gen_softc *sc) { struct mbuf *m; if_t ifp; - int cnt, err; + int err; GEN_ASSERT_LOCKED(sc); @@ -1025,7 +1025,7 @@ gen_start_locked(struct gen_softc *sc) IFF_DRV_RUNNING) return; - for (cnt = 0; ; cnt++) { + while (true) { m = if_dequeue(ifp); if (m == NULL) break;