SWDEV-357246 - Adds a missing return statement
Change-Id: I2216f71f4d4fb6dd3766023b0c821cb3d35d7849
Этот коммит содержится в:
коммит произвёл
Sourabh Betigeri
родитель
e00965df50
Коммит
84fbb30b7c
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user