intel/dev: Assert the number of slices is not zero
Fixes: c1900f5b
intel: devinfo: add helper functions to fill...
CID: 1433511
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
This commit is contained in:
parent
8960903c90
commit
26f48fe010
|
@ -1047,7 +1047,7 @@ gen_device_info_update_from_topology(struct gen_device_info *devinfo,
|
|||
/* We expect the total number of EUs to be uniformly distributed throughout
|
||||
* the subslices.
|
||||
*/
|
||||
assert((n_eus % n_subslices) == 0);
|
||||
assert(n_subslices && (n_eus % n_subslices) == 0);
|
||||
devinfo->num_eu_per_subslice = n_eus / n_subslices;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue