]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: fix compile warnings from set-never-used
authorStephen Hemminger <shemminger@vyatta.com>
Tue, 6 Dec 2011 21:29:49 +0000 (01:29 +0400)
committerDenis Ovsienko <infrastation@yandex.ru>
Tue, 6 Dec 2011 21:29:49 +0000 (01:29 +0400)
The if_dump code had empty loop, that caused set-never-used warning.

lib/if.c

index 86f754b6b3edbec6dbc76d9e794e1538e7939dd0..31c60e3fe85f813066af459d4dc7785318043b32 100644 (file)
--- 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. */