From a619ddfa631d0b6aa1fbcc1c3760b5f4c53995d8 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 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; } }