Sfoglia il codice sorgente

Removing an assignment that is no longer needed.

Up to revision 435, it was needed to set the "err" variable, since it was later used by fprintf.

[scan-build] Dead assignment.
Cyril Roelandt 14 anni fa
parent
commit
a5795a88c7
1 ha cambiato i file con 0 aggiunte e 3 eliminazioni
  1. 0 3
      src/core/perfmodel/regression.c

+ 0 - 3
src/core/perfmodel/regression.c

@@ -203,10 +203,7 @@ int _starpu_regression_non_linear_power(struct starpu_history_list_t *ptr, doubl
 		}
 
 		if (fabs(err - STARPU_MIN(err1, err2)) < EPS)
-		{
-			err = STARPU_MIN(err1, err2);
 			break;
-		}
 
 		err = STARPU_MIN(err1, err2);
 	}