Browse Source

Fix dead assignment.

[scan-build] Dead assignment.
Cyril Roelandt 13 years ago
parent
commit
28817eb703
1 changed files with 1 additions and 4 deletions
  1. 1 4
      examples/opt/pi/pi_redux.c

+ 1 - 4
examples/opt/pi/pi_redux.c

@@ -161,16 +161,13 @@ extern void pi_redux_cuda_kernel(float *x, float *y, unsigned n, unsigned long *
 #ifdef STARPU_HAVE_CURAND
 static void pi_func_cuda(void *descr[], void *cl_arg __attribute__ ((unused)))
 {
-	cudaError_t cures;
 	curandStatus_t res;	
 
 	int workerid = starpu_worker_get_id();
 
 	/* CURAND is a bit silly: it assumes that any error is fatal. Calling
 	 * cudaGetLastError resets the last error value. */
-	cures = cudaGetLastError();
-/*	if (cures)
-		STARPU_CUDA_REPORT_ERROR(cures); */
+	(void) cudaGetLastError();
 
 	/* Fill the scratchpad with random numbers. Note that both x and y
 	 * arrays are in stored the same vector. */