Skip to content

Commit

Permalink
ggml : remove return from ggml_gallocr_allocate_node (#1048)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
danbev authored Dec 14, 2024
1 parent 863a4da commit 193fc21
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/ggml-alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,6 @@ static void ggml_gallocr_allocate_node(ggml_gallocr_t galloc, struct ggml_tensor
size_t offset = ggml_dyn_tallocr_alloc(alloc, size, node);
hn->buffer_id = buffer_id;
hn->offset = offset;
return;
}
}

Expand Down

0 comments on commit 193fc21

Please sign in to comment.