From 27d539f2d4b4c40e9fc667f8b1319ed290c6e4b3 Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Wed, 8 Aug 2018 11:55:58 +0300 Subject: [PATCH] 9712 libstand: netif.c variable set but not used Reviewed by: Yuri Pankov Reviewed by: Andrew Stormont Reviewed by: Sebastian Wiedenroth Approved by: Dan McDonald --- usr/src/boot/lib/libstand/netif.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/usr/src/boot/lib/libstand/netif.c b/usr/src/boot/lib/libstand/netif.c index e5eb603e5e..51bc5aa125 100644 --- a/usr/src/boot/lib/libstand/netif.c +++ b/usr/src/boot/lib/libstand/netif.c @@ -90,7 +90,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; @@ -106,8 +106,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) printf("\t%s%d:", drv->netif_bname, -- 2.11.4.GIT