Build fixes for clang-18 (#880)

Fixes unnecessary inline and ambiguous conditional return.
Tá an tiomantas seo le fáil i:
Benjamin Welton údaraithe agus GitHub tiomanta 2024-05-28 17:01:50 -07:00
1 tuismitheoir 705a791553
tiomantas 00f31e593c
2 comhad athraithe
+5 -5

Níor tháinig aon chomhaid le do chuardach

@@ -168,9 +168,9 @@ ioctl_query_pc_sampling_capabilities(uint32_t kfd_gpu_id,
}
*size = args.num_sample_info;
return (ret == -ENOSPC) ? ROCPROFILER_IOCTL_STATUS_BUFFER_TOO_SMALL
: (ret != 0) ? ROCPROFILER_IOCTL_STATUS_ERROR
: ROCPROFILER_IOCTL_STATUS_SUCCESS;
if(ret == -ENOSPC) return ROCPROFILER_IOCTL_STATUS_BUFFER_TOO_SMALL;
return ret != 0 ? ROCPROFILER_IOCTL_STATUS_ERROR : ROCPROFILER_IOCTL_STATUS_SUCCESS;
}
rocprofiler_status_t