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
|
@ -45,7 +45,7 @@ static bool check_add_partition(struct k_mem_domain *domain,
|
|||
}
|
||||
#endif
|
||||
|
||||
if (part->size == 0) {
|
||||
if (part->size == 0U) {
|
||||
LOG_ERR("zero sized partition at %p with base 0x%lx",
|
||||
part, part->start);
|
||||
return false;
|
||||
|
@ -66,7 +66,7 @@ static bool check_add_partition(struct k_mem_domain *domain,
|
|||
for (i = 0; i < domain->num_partitions; i++) {
|
||||
struct k_mem_partition *dpart = &domain->partitions[i];
|
||||
|
||||
if (dpart->size == 0) {
|
||||
if (dpart->size == 0U) {
|
||||
/* Unused slot */
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue