Ver código fonte

drop useless initialization

Samuel Thibault 8 anos atrás
pai
commit
5f04e1e206
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      examples/cg/cg_kernels.c

+ 2 - 2
examples/cg/cg_kernels.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2010, 2012-2015  Université de Bordeaux
+ * Copyright (C) 2010, 2012-2016  Université de Bordeaux
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -262,7 +262,7 @@ void dot_kernel_cpu(void *descr[], void *cl_arg)
 
 	unsigned n = STARPU_VECTOR_GET_NX(descr[1]);
 
-	TYPE local_dot = 0.0;
+	TYPE local_dot;
 	/* Note that we explicitely cast the result of the DOT kernel because
 	 * some BLAS library will return a double for sdot for instance. */
 	local_dot = (TYPE)DOT(n, v1, 1, v2, 1);