]> 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>
Mon, 2 Jan 2012 13:27:13 +0000 (17:27 +0400)
The if_dump code had empty loop, that caused set-never-used warning.

lib/if.c

index d14cfb939633eba67c7aeda9221a72f420d8728d..41115b0f09c897a5bf8fbeb47c3f4ea5fd9268b8 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. */