SWDEV-357246 - Adds a missing return statement
Change-Id: I2216f71f4d4fb6dd3766023b0c821cb3d35d7849
[ROCm/clr commit: 84fbb30b7c]
This commit is contained in:
committed by
Sourabh Betigeri
parent
7bcdb29caa
commit
f25d8dae77
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user