From 907f42e63433f643e06fcf1a6e0d31dd85aa435b Mon Sep 17 00:00:00 2001 From: "F. Aragon" Date: Tue, 2 Oct 2018 10:51:47 +0200 Subject: [PATCH] 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 --- ospf6d/ospf6_abr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; } -- 2.39.5