From: Lionel Landwerlin Date: Wed, 9 May 2018 14:08:03 +0000 (+0100) Subject: intel: devinfo: silence coverity warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=11d36c373adcb62016dce9a250120299cfb6e7d8;p=mesa.git intel: devinfo: silence coverity warning It's just not possible to have a device with no subslices. CID: 1433511 Signed-off-by: Lionel Landwerlin Reviewed-by: Rafael Antognolli --- 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;