SWDEV-357246 - Adds a missing return statement

Change-Id: I2216f71f4d4fb6dd3766023b0c821cb3d35d7849


[ROCm/clr commit: 84fbb30b7c]
This commit is contained in:
Sourabh Betigeri
2022-09-26 22:39:31 -07:00
committed by Sourabh Betigeri
parent 7bcdb29caa
commit f25d8dae77
+2 -1
View File
@@ -329,7 +329,7 @@ bool Memory::addDeviceMemory(const Device* dev) {
if (numDevices() == NumDevicesWithP2P()) {
// Mark the allocation as an empty
deviceAlloced_[dev].store(AllocInit, std::memory_order_release);
return false;
return result;
}
device::Memory* dm = dev->createMemory(*this);
@@ -349,6 +349,7 @@ bool Memory::addDeviceMemory(const Device* dev) {
LogError("Video memory allocation failed!");
// Mark the allocation as an empty
deviceAlloced_[dev].store(AllocInit, std::memory_order_release);
return result;
}
}