Skip to content

Commit 610d3c9

Browse files
Remove incorrect local variables
Signed-off-by: Bartosz Dunajski <[email protected]>
1 parent a4f1cf1 commit 610d3c9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

shared/source/os_interface/linux/drm_memory_manager.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ GraphicsAllocation *DrmMemoryManager::createPaddedAllocation(GraphicsAllocation
702702

703703
void DrmMemoryManager::addAllocationToHostPtrManager(GraphicsAllocation *gfxAllocation) {
704704
DrmAllocation *drmMemory = static_cast<DrmAllocation *>(gfxAllocation);
705-
auto maxOsContextCount = 1u;
705+
706706
FragmentStorage fragment = {};
707707
fragment.driverAllocation = true;
708708
fragment.fragmentCpuPointer = gfxAllocation->getUnderlyingBuffer();
@@ -812,7 +812,6 @@ MemoryManager::AllocationStatus DrmMemoryManager::populateOsHandles(OsHandleStor
812812
BufferObject *allocatedBos[maxFragmentsCount];
813813
uint32_t numberOfBosAllocated = 0;
814814
uint32_t indexesOfAllocatedBos[maxFragmentsCount];
815-
auto maxOsContextCount = 1u;
816815

817816
for (unsigned int i = 0; i < maxFragmentsCount; i++) {
818817
// If there is no fragment it means it already exists.

0 commit comments

Comments
 (0)