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:
Topi Pohjolainen 2018-04-05 10:38:46 +03:00
parent 8960903c90
commit 26f48fe010
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}