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