Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Value stored to 'bandwidth' is never read.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Mon, 7 Oct 2013 12:32:47 +0000 (14:32 +0200)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Mon, 7 Oct 2013 16:25:53 +0000 (18:25 +0200)
src/simdag/sd_workstation.c

index 574c99c..14a0c70 100644 (file)
@@ -364,8 +364,7 @@ double SD_route_get_current_bandwidth(SD_workstation_t src,
 
   links = SD_route_get_list(src, dst);
   nb_links = SD_route_get_size(src, dst);
-  bandwidth = min_bandwidth = -1.0;
-
+  min_bandwidth = -1.0;
 
   for (i = 0; i < nb_links; i++) {
     bandwidth = SD_link_get_current_bandwidth(links[i]);