refactor: remove misleading std::move

The `surfStateInfo` argument has a `const SurfStateInHeapInfo &` type.
Thus the result of `std::move()` is
`std::remove_reference<const SurfStateHeapInfo &>::type &&`.
This effectively boils down to `const SurfStateHeapInfo &` (the L-value
reference has precedence), which effectively is passed to
`.push_back(const SurfStateHeapInfo &)`.
This is the same outcome as if the `std::move()` is not present at all.

Related-To: NEO-15630

Signed-off-by: Maciej Bielski <maciej.bielski@intel.com>
This commit is contained in:
Maciej Bielski
2025-08-12 15:47:07 +00:00
committed by Compute-Runtime-Automation
parent 478c7ce9a8
commit f3b3d58ee9

View File

@@ -293,7 +293,7 @@ void BindlessHeapsHelper::releaseSSToReusePool(const SurfaceStateInHeapInfo &sur
if (surfStateInfo.heapAllocation != nullptr) {
std::lock_guard<std::mutex> autolock(this->mtx);
int index = getReusedSshVectorIndex(surfStateInfo.ssSize);
surfaceStateInHeapVectorReuse[releasePoolIndex][index].push_back(std::move(surfStateInfo));
surfaceStateInHeapVectorReuse[releasePoolIndex][index].push_back(surfStateInfo);
}
return;