From 247a82267c0db58a6178990c711286f76688c7a7 Mon Sep 17 00:00:00 2001 From: Syed Faaiz Date: Mon, 16 Sep 2024 12:15:53 -0700 Subject: [PATCH] fix format Co-authored-by: Romaric Jodin --- src/api.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/api.cpp b/src/api.cpp index 553e6fa7..e19dbbae 100644 --- a/src/api.cpp +++ b/src/api.cpp @@ -1468,13 +1468,11 @@ cvk_create_command_queue(cl_context context, cl_device_id device, } if (config.ignore_out_of_order_execution()) { - { - // We do not support out of order command queues so this must fail - if (properties & CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE) { - *errcode_ret = CL_INVALID_QUEUE_PROPERTIES; - return nullptr; - } - } + // We do not support out of order command queues so this must fail + if (properties & CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE) { + *errcode_ret = CL_INVALID_QUEUE_PROPERTIES; + return nullptr; + } } auto queue = std::make_unique( icd_downcast(context), icd_downcast(device), properties,