Skip to content

Commit f6f951c

Browse files
Flavio Ceolinnashif
authored andcommitted
kernel: Fix 10.4 violations
Both operands of an operator in which the usual arithmetic conversions are performed shall have the same essential type category. Signed-off-by: Flavio Ceolin <[email protected]>
1 parent d0dac69 commit f6f951c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

kernel/futex.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ static struct z_futex_data *k_futex_find_data(struct k_futex *futex)
2727
int z_impl_k_futex_wake(struct k_futex *futex, bool wake_all)
2828
{
2929
k_spinlock_key_t key;
30-
unsigned int woken = 0;
30+
unsigned int woken = 0U;
3131
struct k_thread *thread;
3232
struct z_futex_data *futex_data;
3333

kernel/thread.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ char *z_setup_new_thread(struct k_thread *new_thread,
540540
Z_ASSERT_VALID_PRIO(prio, entry);
541541

542542
#ifdef CONFIG_USERSPACE
543-
__ASSERT((options & K_USER) == 0 || z_stack_is_user_capable(stack),
543+
__ASSERT((options & K_USER) == 0U || z_stack_is_user_capable(stack),
544544
"user thread %p with kernel-only stack %p",
545545
new_thread, stack);
546546
z_object_init(new_thread);

0 commit comments

Comments
 (0)