diff --git a/include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_fpga.h b/include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_fpga.h index 7baee78b1b1..9ff4fa2c80b 100644 --- a/include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_fpga.h +++ b/include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_fpga.h @@ -59,8 +59,7 @@ struct __parallel_for_fpga_submitter<__internal::__optional_kernel_name<_Name... auto operator()(_ExecutionPolicy&& __exec, _Fp __brick, _Index __count, _Ranges&&... __rngs) const { - auto __n = oneapi::dpl::__ranges::__get_first_range_size(__rngs...); - assert(__n > 0); + assert(oneapi::dpl::__ranges::__get_first_range_size(__rngs...) > 0); _PRINT_INFO_IN_DEBUG_MODE(__exec); auto __event = __exec.queue().submit([&__rngs..., &__brick, __count](sycl::handler& __cgh) {