From: F. Aragon Date: Tue, 2 Oct 2018 08:51:47 +0000 (+0200) Subject: ospf6d: dead code (Coverity 1399231) X-Git-Tag: frr-7.1-dev~306^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=907f42e63433f643e06fcf1a6e0d31dd85aa435b;p=mirror%2Ffrr.git ospf6d: dead code (Coverity 1399231) 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 --- diff --git a/ospf6d/ospf6_abr.c b/ospf6d/ospf6_abr.c index 2cd3df6432..1890e9bdc3 100644 --- a/ospf6d/ospf6_abr.c +++ b/ospf6d/ospf6_abr.c @@ -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; }