]> AND Public Git Repository - simgrid.git/blobdiff - src/kernel/routing/FloydZone.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove lines of commented code spotted by sonar.
[simgrid.git] / src / kernel / routing / FloydZone.cpp
index 7c5997237e300e8f2deeaea5951056abfb0d10d7..e6802812144313e87d9af57c58ce72585a15371d 100644 (file)
@@ -140,7 +140,7 @@ void FloydZone::addRoute(sg_platf_route_cbarg_t route)
       route->gw_dst   = gw_tmp;
     }
 
-    if (not route->gw_src && not route->gw_dst)
+    if (not route->gw_src || not route->gw_dst)
       XBT_DEBUG("Load Route from \"%s\" to \"%s\"", route->dst->name().c_str(), route->src->name().c_str());
     else
       XBT_DEBUG("Load NetzoneRoute from \"%s(%s)\" to \"%s(%s)\"", route->dst->name().c_str(), route->gw_src->name().c_str(),