瀏覽代碼

drop useless initialization

Samuel Thibault 8 年之前
父節點
當前提交
5f04e1e206
共有 1 個文件被更改,包括 2 次插入2 次删除
  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.
 /* 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
  * 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
  * 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]);
 	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
 	/* Note that we explicitely cast the result of the DOT kernel because
 	 * some BLAS library will return a double for sdot for instance. */
 	 * some BLAS library will return a double for sdot for instance. */
 	local_dot = (TYPE)DOT(n, v1, 1, v2, 1);
 	local_dot = (TYPE)DOT(n, v1, 1, v2, 1);