rocr: Fixed inefficient copy operations

Changed variable assignments to use std::move() where appropriate.
Revert change in amd_kfd_driver.cpp.

Signed-off-by: Alysa Liu <Alysa.Liu@amd.com>


[ROCm/ROCR-Runtime commit: a945b5d493]
Tá an tiomantas seo le fáil i:
Alysa Liu údaraithe agus Liu, Alysa tiomanta 2025-06-02 11:18:36 -04:00
1 tuismitheoir 88dd451c64
tiomantas b97f9ba6d5
1 comhad athraithe
+1 -1
@@ -84,7 +84,7 @@ __forceinline uint64_t drm_perm(hsa_access_permission_t perm) {
} // namespace
KfdDriver::KfdDriver(std::string devnode_name)
: core::Driver(core::DriverType::KFD, std::move(devnode_name)) {}
: core::Driver(core::DriverType::KFD, devnode_name) {}
hsa_status_t KfdDriver::Init() {
HSAKMT_STATUS ret =