aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLionel Landwerlin <[email protected]>2018-05-09 15:08:03 +0100
committerLionel Landwerlin <[email protected]>2018-05-09 15:21:01 +0100
commit11d36c373adcb62016dce9a250120299cfb6e7d8 (patch)
tree0b495a8705a311114abb0c20cace1235bc9ad53b
parent6f81e07ecb8c0793dc482307d5d96fd3df95b7d2 (diff)
intel: devinfo: silence coverity warning
It's just not possible to have a device with no subslices. CID: 1433511 Signed-off-by: Lionel Landwerlin <[email protected]> Reviewed-by: Rafael Antognolli <[email protected]>
-rw-r--r--src/intel/dev/gen_device_info.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/intel/dev/gen_device_info.c b/src/intel/dev/gen_device_info.c
index aa72d96e178..653cece6d70 100644
--- a/src/intel/dev/gen_device_info.c
+++ b/src/intel/dev/gen_device_info.c
@@ -1034,6 +1034,7 @@ gen_device_info_update_from_topology(struct gen_device_info *devinfo,
}
n_subslices += devinfo->num_subslices[s];
}
+ assert(n_subslices > 0);
uint32_t eu_mask_len =
topology->eu_stride * topology->max_subslices * topology->max_slices;