Build fixes for clang-18 (#880)

Fixes unnecessary inline and ambiguous conditional return.
This commit is contained in:
Benjamin Welton authored and GitHub committed 2024-05-28 17:01:50 -07:00
1 parent 705a791553
commit 00f31e593c
2 files changed
+5 -5

No files matched your search

@@ -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