Преглед изворни кода

tests/datawizard: remove unreachable code

Spotted by Coverity.
Samuel Pitoiset пре 9 година
родитељ
комит
d24bb83255
3 измењених фајлова са 0 додато и 21 уклоњено
  1. 0 7
      tests/datawizard/cache.c
  2. 0 7
      tests/datawizard/commute.c
  3. 0 7
      tests/datawizard/noreclaim.c

+ 0 - 7
tests/datawizard/cache.c

@@ -90,11 +90,4 @@ int main(int argc, char **argv)
      starpu_shutdown();
 
      return 0;
-
-enodev:
-     starpu_shutdown();
-     /* yes, we do not perform the computation but we did detect that no one
-      * could perform the kernel, so this is not an error from StarPU */
-     fprintf(stderr, "WARNING: No one can execute this task\n");
-     return STARPU_TEST_SKIPPED;
 }

+ 0 - 7
tests/datawizard/commute.c

@@ -174,11 +174,4 @@ int main(int argc, char **argv)
 	starpu_data_unregister(x_handle);
 	starpu_shutdown();
 	STARPU_RETURN(0);
-
-enodev:
-	fprintf(stderr, "WARNING: No one can execute this task\n");
-	/* yes, we do not perform the computation but we did detect that no one
- 	 * could perform the kernel, so this is not an error from StarPU */
-	starpu_shutdown();
-	return STARPU_TEST_SKIPPED;
 }

+ 0 - 7
tests/datawizard/noreclaim.c

@@ -129,12 +129,5 @@ int main(int argc, char **argv)
 	starpu_shutdown();
 
 	return EXIT_SUCCESS;
-
-enodev:
-	fprintf(stderr, "WARNING: No one can execute this task\n");
-	/* yes, we do not perform the computation but we did detect that no one
- 	 * could perform the kernel, so this is not an error from StarPU */
-	starpu_shutdown();
-	return STARPU_TEST_SKIPPED;
 }
 #endif