From: Daniel Bevenius Date: Sat, 14 Dec 2024 02:23:08 +0000 (+0100) Subject: ggml : remove return from ggml_gallocr_allocate_node (ggml/1048) X-Git-Tag: upstream/0.0.4488~143 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=130d0c90bd26b25e3a713b17a61a5d4eb0a66405;p=pkg%2Fggml%2Fsources%2Fllama.cpp 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. --- diff --git a/ggml/src/ggml-alloc.c b/ggml/src/ggml-alloc.c index 2b2240be..8dc8226a 100644 --- a/ggml/src/ggml-alloc.c +++ b/ggml/src/ggml-alloc.c @@ -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; } }