Skip to content

Commit 39eec0c

Browse files
committed
Remove useless const qualifiers from helper function return types.
1 parent 3029501 commit 39eec0c

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

source/adapters/opencl/event.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ convertURProfilingInfoToCL(const ur_profiling_info_t PropName) {
5454
}
5555
}
5656

57-
const ur_command_t
58-
convertCLCommandTypeToUR(const cl_command_type &CommandType) {
57+
ur_command_t convertCLCommandTypeToUR(const cl_command_type &CommandType) {
5958
/* Note: the following enums don't have a CL equivalent:
6059
UR_COMMAND_USM_FILL_2D
6160
UR_COMMAND_USM_MEMCPY_2D

source/adapters/opencl/queue.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ convertURQueuePropertiesToCL(const ur_queue_properties_t *URQueueProperties) {
4949
return CLCommandQueueProperties;
5050
}
5151

52-
const ur_queue_flags_t
52+
ur_queue_flags_t
5353
mapCLQueuePropsToUR(const cl_command_queue_properties &Properties) {
5454
ur_queue_flags_t Flags = 0;
5555
if (Properties & CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE) {

source/adapters/opencl/usm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urEnqueueUSMMemcpy2D(
486486
return UR_RESULT_SUCCESS;
487487
}
488488

489-
const ur_usm_type_t
489+
ur_usm_type_t
490490
mapCLUSMTypeToUR(const cl_unified_shared_memory_type_intel &Type) {
491491
switch (Type) {
492492
case CL_MEM_TYPE_HOST_INTEL:

0 commit comments

Comments
 (0)