summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2011-12-07 01:29:49 +0400
committerDenis Ovsienko <infrastation@yandex.ru>2012-01-02 17:27:13 +0400
commit07bb964ef11d34235570427cd9bc4111956e31b7 (patch)
treedecf3cbdd503891aeab2deb3a0ff086e48a487db
parent94e7cd90feb6af51b7e21d5289dc0edc1ba94a99 (diff)
lib: fix compile warnings from set-never-used
The if_dump code had empty loop, that caused set-never-used warning.
-rw-r--r--lib/if.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/if.c b/lib/if.c
index d14cfb93..41115b0f 100644
--- a/lib/if.c
+++ b/lib/if.c
@@ -426,9 +426,6 @@ if_flag_dump (unsigned long flag)
static void
if_dump (const struct interface *ifp)
{
- struct listnode *node;
- struct connected *c;
-
zlog_info ("Interface %s index %d metric %d mtu %d "
#ifdef HAVE_IPV6
"mtu6 %d "
@@ -439,9 +436,6 @@ if_dump (const struct interface *ifp)
ifp->mtu6,
#endif /* HAVE_IPV6 */
if_flag_dump (ifp->flags));
-
- for (ALL_LIST_ELEMENTS_RO (ifp->connected, node, c))
- ;
}
/* Interface printing for all interface. */