git: 58e354ec8b1a - main - stand: netif kill set but unused variables
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 16 Dec 2021 03:04:22 UTC
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=58e354ec8b1ae0ec80fba02636e64930db4fd9c2 commit 58e354ec8b1ae0ec80fba02636e64930db4fd9c2 Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2021-12-16 02:44:28 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2021-12-16 02:44:28 +0000 stand: netif kill set but unused variables Sponsored by: Netflix --- stand/libsa/netif.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/stand/libsa/netif.c b/stand/libsa/netif.c index f199da3b6e95..4e91e11a9413 100644 --- a/stand/libsa/netif.c +++ b/stand/libsa/netif.c @@ -102,7 +102,7 @@ netif_match(struct netif *nif, void *machdep_hint) struct netif * netif_select(void *machdep_hint) { - int d, u, unit_done, s; + int d, u, s; struct netif_driver *drv; struct netif cur_if; static struct netif best_if; @@ -118,7 +118,6 @@ netif_select(void *machdep_hint) for (u = 0; u < drv->netif_nifs; u++) { cur_if.nif_unit = u; - unit_done = 0; #ifdef NETIF_DEBUG if (netif_debug)