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:
parent
8272b32708
commit
bbbc38ba8f
15 changed files with 47 additions and 47 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue