]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
ggml : remove return from ggml_gallocr_allocate_node (ggml/1048)
authorDaniel Bevenius <redacted>
Sat, 14 Dec 2024 02:23:08 +0000 (03:23 +0100)
committerGeorgi Gerganov <redacted>
Wed, 18 Dec 2024 10:52:16 +0000 (12:52 +0200)
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

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