summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Tsochantaris <ptsochantaris@icloud.com>2024-01-17 08:07:24 +0000
committerGitHub <noreply@github.com>2024-01-17 10:07:24 +0200
commit75632936659772d5b2ce54b0b65319fecbaac2e6 (patch)
treeab02d6183ff6340e86cd9025223f84f904ebc038
parentf46c0c1b0ea0bc67e24e4bf026a7e898c1af22a9 (diff)
metal : remove unnecessary nil check (#4986)
-rw-r--r--ggml-metal.m5
1 files changed, 1 insertions, 4 deletions
diff --git a/ggml-metal.m b/ggml-metal.m
index a549e671..8bb4edd6 100644
--- a/ggml-metal.m
+++ b/ggml-metal.m
@@ -2236,10 +2236,7 @@ static bool ggml_metal_graph_compute(
#endif
}
- if (encoder != nil) {
- [encoder endEncoding];
- encoder = nil;
- }
+ [encoder endEncoding];
[command_buffer commit];
});