PERF: Coverity fix.
PERF: Coverity fix.

shssf/ucx,abouteiller/ucx,biddisco/ucx,biddisco/ucx,sergsagal1/ucx_rocm,shssf/ucx,abouteiller/ucx,biddisco/ucx,miked-mellanox/ucx,miked-mellanox/ucx,abouteiller/ucx,sergsagal1/ucx_rocm,manjugv/ucx,manjugv/ucx,manjugv/ucx,abouteiller/ucx,miked-mellanox/ucx,shssf/ucx,sergsagal1/ucx_rocm