diff --git a/ggml/src/ggml-zdnn/ggml-zdnn-rewrite.cpp b/ggml/src/ggml-zdnn/ggml-zdnn-rewrite.cpp index a62403b98e..c87dc17473 100644 --- a/ggml/src/ggml-zdnn/ggml-zdnn-rewrite.cpp +++ b/ggml/src/ggml-zdnn/ggml-zdnn-rewrite.cpp @@ -56,9 +56,8 @@ inline void ggml_zdnn_load_tensor(zdnn_ztensor & ztensor, inline void ggml_zdnn_init_tensor(ggml_backend_zdnn_buffer * buffer, const ggml_tensor * tensor) { switch (tensor->op) { case GGML_OP_NONE: - { - // noop here because we will initialise it during the compute graph execution - } break; + // noop here because we will initialise it during the compute graph execution + return; case GGML_OP_MUL_MAT: {