Skip to content

Commit 05e0009

Browse files
UCT/ROCM: Fix boolean check
Signed-off-by: Guy Ealey Morag <gealeymorag@nvidia.com>
1 parent 2ba16f6 commit 05e0009

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/uct/rocm/base/rocm_base.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,8 +394,8 @@ static int uct_rocm_base_kernel_config_supports_dmabuf()
394394
dmabuf_supported = uct_rocm_base_file_contains_dmabuf_support(
395395
fp, kernel_opt1, kernel_opt2);
396396
pclose(fp);
397-
if (dmabuf_supported == 1) {
398-
return dmabuf_supported;
397+
if (dmabuf_supported) {
398+
return 1;
399399
}
400400
}
401401

0 commit comments

Comments
 (0)