From 71ac58ae5393e59d398323cd2b50d54384c17a35 Mon Sep 17 00:00:00 2001 From: Henri Vasserman Date: Sat, 20 May 2023 15:29:26 +0300 Subject: [PATCH] make clang-tidy happy --- ggml-opencl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ggml-opencl.c b/ggml-opencl.c index f62c4b596..cf44c604d 100644 --- a/ggml-opencl.c +++ b/ggml-opencl.c @@ -229,8 +229,8 @@ void ggml_cl_init(void) { cl_device_id device_ids[NDEV]; cl_int clGetDeviceIDsError = clGetDeviceIDs(p->id, CL_DEVICE_TYPE_ALL, NDEV, device_ids, &p->n_devices); - if (clGetDeviceIDsError == CL_DEVICE_NOT_FOUND) p->n_devices = 0; - else CL_CHECK(clGetDeviceIDsError); + if (clGetDeviceIDsError == CL_DEVICE_NOT_FOUND) { p->n_devices = 0; } + else { CL_CHECK(clGetDeviceIDsError); } p->devices = p->n_devices > 0 ? &devices[n_devices] : NULL; p->default_device = NULL;