Browse Source

fix cppcheck issue

Olivier Aumage 7 years ago
parent
commit
6313d85e7e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/core/disk.c

+ 1 - 1
src/core/disk.c

@@ -243,7 +243,7 @@ int _starpu_disk_copy(unsigned node_src, void *obj_src, off_t offset_src, unsign
 	/* Something goes wrong with copy disk to disk... */
 	if (!event)
 	{
-		if (channel || (!channel && starpu_asynchronous_copy_disabled()))
+		if (channel || starpu_asynchronous_copy_disabled())
 			disk_register_list[node_src]->functions->copy = NULL;
 
 		/* perform a read, and after a write... */