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