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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Посилання в новій задачі
Заблокувати користувача