Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
ns3: typo and useless check
authorMartin Quinson <martin.quinson@loria.fr>
Wed, 23 Mar 2016 09:27:46 +0000 (10:27 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Wed, 23 Mar 2016 11:14:13 +0000 (12:14 +0100)
src/surf/network_ns3.cpp

index f13ca42..99ca278 100644 (file)
@@ -189,9 +189,8 @@ static void create_ns3_topology(void)
 
   //get the onelinks from the parsed platform
   xbt_dynar_t onelink_routes = routing_platf->getOneLinkRoutes();
-  if (!onelink_routes)
-    xbt_die("There is no routes!");
-  XBT_DEBUG("Threr is %ld one-link routes",onelink_routes->used);
+
+  XBT_DEBUG("There is %ld one-link routes",onelink_routes->used);
   //save them in trace file
   simgrid::surf::Onelink *onelink;
   unsigned int iter;