ソースを参照

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