test: Resolve clang-tidy dead store warning

Signed-off-by: Fabian Zwoliński <fabian.zwolinski@intel.com>
This commit is contained in:
Fabian Zwoliński
2025-02-03 09:45:30 +00:00
committed by Compute-Runtime-Automation
parent 85c8b6edcc
commit aab1113632

View File

@@ -7642,7 +7642,7 @@ TEST_F(DrmMemoryManagerWithLocalMemoryAndExplicitExpectationsTest, givenAllocati
EXPECT_TRUE(allocation->getGpuAddress() % size == 0u);
size = 8 * MemoryConstants::gigaByte + MemoryConstants::pageSize64k;
size_t expectedSize = size;
size_t expectedSize{};
if (productHelper.is2MBLocalMemAlignmentEnabled()) {
expectedSize = alignUp(size, MemoryConstants::pageSize2M);