]> git.puffer.fish Git - mirror/frr.git/commitdiff
ospf6d: dead code (Coverity 1399231) 3118/head
authorF. Aragon <paco@voltanet.io>
Tue, 2 Oct 2018 08:51:47 +0000 (10:51 +0200)
committerF. Aragon <paco@voltanet.io>
Tue, 2 Oct 2018 08:54:50 +0000 (10:54 +0200)
The dead code has been disabled with '#if 0', in a similar way to other
disabled logs in the same function.

Signed-off-by: F. Aragon <paco@voltanet.io>
ospf6d/ospf6_abr.c

index 2cd3df6432b0f3a13fbd955fa28b4f9b583694e3..1890e9bdc39aba25813a53467f337d4ceaf18df2 100644 (file)
@@ -171,8 +171,9 @@ int ospf6_abr_originate_summary_to_area(struct ospf6_route *route,
        /* AS External routes are never considered */
        if (route->path.type == OSPF6_PATH_TYPE_EXTERNAL1
            || route->path.type == OSPF6_PATH_TYPE_EXTERNAL2) {
-               if (is_debug)
-                       zlog_debug("Path type is external, skip");
+#if 0
+               zlog_debug("Path type is external, skip");
+#endif
                return 0;
        }