浏览代码

tests: remove set but unused values in run_driver.c

Spotted by Coverity.
Samuel Pitoiset 9 年之前
父节点
当前提交
02d7113191
共有 1 个文件被更改,包括 0 次插入8 次删除
  1. 0 8
      tests/main/driver_api/run_driver.c

+ 0 - 8
tests/main/driver_api/run_driver.c

@@ -147,10 +147,7 @@ test_cuda(void)
 
 	ret = starpu_pthread_create(&driver_thread, NULL, run_driver, &d);
 	if (ret == -1)
-	{
-		ret = 1;
 		goto out;
-	}
 
 	struct starpu_task *task;
 	task = starpu_task_create();
@@ -163,7 +160,6 @@ test_cuda(void)
 	if (ret == -ENODEV)
 	{
 		FPRINTF(stderr, "WARNING: No worker can execute this task\n");
-		ret = STARPU_TEST_SKIPPED;
 		goto out;
 	}
 
@@ -233,10 +229,7 @@ test_opencl(void)
 
 	ret = starpu_pthread_create(&driver_thread, NULL, run_driver, &d);
 	if (ret == -1)
-	{
-		ret = 1;
 		goto out;
-	}
 
 	struct starpu_task *task;
 	task = starpu_task_create();
@@ -249,7 +242,6 @@ test_opencl(void)
 	if (ret == -ENODEV)
 	{
 		FPRINTF(stderr, "WARNING: No worker can execute the task\n");
-		ret = STARPU_TEST_SKIPPED;
 		goto out;
 	}