fix: fix issues detected with clang-tidy-16

Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com>
This commit is contained in:
Pawel Cieslak
2023-10-30 16:56:03 +00:00
committed by Compute-Runtime-Automation
parent c9d6615231
commit f29dc33b34
4 changed files with 7 additions and 4 deletions

View File

@@ -3187,6 +3187,8 @@ TEST_F(MultipleDevicesTest, givenTopologyForTwoSubdevicesWhenGettingPhysicalSlic
mapping.sliceIndices[i] = i;
}
ASSERT_NE(0u, hwInfo.gtSystemInfo.SliceCount);
mapping.subsliceIndices.resize(hwInfo.gtSystemInfo.SubSliceCount / hwInfo.gtSystemInfo.SliceCount);
for (uint32_t i = 0; i < hwInfo.gtSystemInfo.SubSliceCount / hwInfo.gtSystemInfo.SliceCount; i++) {
mapping.subsliceIndices[i] = i;