git: 0a7f1efb4488 - stable/13 - stand: netif kill set but unused variables

From: Warner Losh <imp_at_FreeBSD.org>
Date: Tue, 24 Jan 2023 22:10:08 UTC
The branch stable/13 has been updated by imp:

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

commit 0a7f1efb4488c88dec6515085f8904c22ef84780
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2021-12-16 02:44:28 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-01-24 21:49:19 +0000

    stand: netif kill set but unused variables
    
    Sponsored by:           Netflix
    
    (cherry picked from commit 58e354ec8b1ae0ec80fba02636e64930db4fd9c2)
---
 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)