浏览代码

Remove duplicate test

Cédric Augonnet 14 年之前
父节点
当前提交
d59bd9cfe2
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      src/datawizard/memalloc.c

+ 1 - 3
src/datawizard/memalloc.c

@@ -721,9 +721,7 @@ int _starpu_allocate_memory_on_node(starpu_data_handle handle, uint32_t dst_node
 	if (!allocated_memory)
 		return ENOMEM;
 
-	/* perhaps we could really not handle that capacity misses */
-	if (allocated_memory)
-		register_mem_chunk(handle, dst_node, allocated_memory, 1);
+	register_mem_chunk(handle, dst_node, allocated_memory, 1);
 
 	handle->per_node[dst_node].allocated = 1;
 	handle->per_node[dst_node].automatically_allocated = 1;