SWDEV-357246 - Adds a missing return statement

Change-Id: I2216f71f4d4fb6dd3766023b0c821cb3d35d7849


[ROCm/clr commit: 84fbb30b7c]
Este cometimento está contido em:
Sourabh Betigeri criou e Sourabh Betigeri cometeu 2022-10-05 16:29:32 -04:00
1 ascendente 7bcdb29caa
cometimento f25d8dae77
1 ficheiro modificado
+2 -1
+2 -1
Ver ficheiro
@@ -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;
}
}