]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
ggml : remove return from ggml_gallocr_allocate_node (#1048)
authorDaniel Bevenius <redacted>
Sat, 14 Dec 2024 02:23:08 +0000 (03:23 +0100)
committerGitHub <redacted>
Sat, 14 Dec 2024 02:23:08 +0000 (03:23 +0100)
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

index 2b2240be85dd34f1129db1d2d3bf2d3bcc33e708..8dc8226ac4932c946e7ff7969e9b020564685ce1 100644 (file)
@@ -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;
     }
 }