diff options
author | Toomas Soome <tsoome@me.com> | 2018-08-08 11:55:58 +0300 |
---|---|---|
committer | Dan McDonald <danmcd@joyent.com> | 2018-08-09 11:05:58 -0400 |
commit | 27d539f2d4b4c40e9fc667f8b1319ed290c6e4b3 (patch) | |
tree | 5a34dda0f03d06b222a7f15cae38d1adb8b342d4 | |
parent | 380059927f2f5af9148793463b305037707f8613 (diff) | |
download | illumos-joyent-27d539f2d4b4c40e9fc667f8b1319ed290c6e4b3.tar.gz |
9712 libstand: netif.c variable set but not used
Reviewed by: Yuri Pankov <yuripv@yuripv.net>
Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
Reviewed by: Sebastian Wiedenroth <sebastian.wiedenroth@skylime.net>
Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r-- | usr/src/boot/lib/libstand/netif.c | 4 |
1 files changed, 1 insertions, 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, |