Skip to content

Commit 130d0c9

Browse files
danbevggerganov
authored andcommitted
ggml : remove return from ggml_gallocr_allocate_node (ggml/1048)
This commit removes the return statement from ggml_gallocr_allocate_node function. The motivation behind this change is to make the code more readable and consistent.
1 parent 3919da8 commit 130d0c9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

ggml/src/ggml-alloc.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,6 @@ static void ggml_gallocr_allocate_node(ggml_gallocr_t galloc, struct ggml_tensor
534534
size_t offset = ggml_dyn_tallocr_alloc(alloc, size, node);
535535
hn->buffer_id = buffer_id;
536536
hn->offset = offset;
537-
return;
538537
}
539538
}
540539

0 commit comments

Comments
 (0)