From 130d0c90bd26b25e3a713b17a61a5d4eb0a66405 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Sat, 14 Dec 2024 03:23:08 +0100 Subject: [PATCH] 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. --- ggml/src/ggml-alloc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/ggml/src/ggml-alloc.c b/ggml/src/ggml-alloc.c index 2b2240be8..8dc8226ac 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; } }