kernel: Make both operands of operators of same essential type category

Add a 'U' suffix to values when computing and comparing against
unsigned variables and other related fixes of the same MISRA rule (10.4)

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2021-03-29 10:03:49 -04:00
commit bbbc38ba8f
15 changed files with 47 additions and 47 deletions

View file

@ -36,7 +36,7 @@ static int create_free_list(struct k_mem_slab *slab)
/* blocks must be word aligned */
CHECKIF(((slab->block_size | (uintptr_t)slab->buffer) &
(sizeof(void *) - 1)) != 0) {
(sizeof(void *) - 1)) != 0U) {
return -EINVAL;
}