diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2011-12-07 01:29:49 +0400 |
---|---|---|
committer | Denis Ovsienko <infrastation@yandex.ru> | 2011-12-07 01:29:49 +0400 |
commit | 3c14ebb0810e73ad899ae45e5fb2758153057e0e (patch) | |
tree | 7a96a4bb8b2b276ee4458871c28c3b97c64d29a6 | |
parent | c143c38bc707194d52aec544e62e5485c6c4bc08 (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.c | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -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. */ |