Merge pull request #2561 from pacovn/Coverity_1399231_Logically_dead_code

lib ospf6d: dead code (Coverity 1399231)
This commit is contained in:
Jafar Al-Gharaibeh 2018-06-28 14:48:17 -05:00 committed by GitHub
commit d6076845b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -161,9 +161,10 @@ int ospf6_abr_originate_summary_to_area(struct ospf6_route *route,
&& route->type != OSPF6_DEST_TYPE_RANGE
&& ((route->type != OSPF6_DEST_TYPE_ROUTER)
|| !CHECK_FLAG(route->path.router_bits, OSPF6_ROUTER_BIT_E))) {
if (is_debug)
zlog_debug(
"Route type is none of network, range nor ASBR, ignore");
#if 0
zlog_debug(
"Route type is none of network, range nor ASBR, ignore");
#endif
return 0;
}
@ -177,16 +178,17 @@ int ospf6_abr_originate_summary_to_area(struct ospf6_route *route,
/* do not generate if the path's area is the same as target area */
if (route->path.area_id == area->area_id) {
if (is_debug)
zlog_debug("The route is in the area itself, ignore");
#if 0
zlog_debug("The route is in the area itself, ignore");
#endif
return 0;
}
/* do not generate if the nexthops belongs to the target area */
if (ospf6_abr_nexthops_belong_to_area(route, area)) {
if (is_debug)
zlog_debug(
"The route's nexthop is in the same area, ignore");
#if 0
zlog_debug("The route's nexthop is in the same area, ignore");
#endif
return 0;
}