Browse Source

tests/datawizard: remove unreachable code

Spotted by Coverity.
Samuel Pitoiset 9 years ago
parent
commit
d24bb83255
3 changed files with 0 additions and 21 deletions
  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();
      starpu_shutdown();
 
 
      return 0;
      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_data_unregister(x_handle);
 	starpu_shutdown();
 	starpu_shutdown();
 	STARPU_RETURN(0);
 	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();
 	starpu_shutdown();
 
 
 	return EXIT_SUCCESS;
 	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
 #endif