hsa: fix coverity warning