diff --git a/kernel/thread.c b/kernel/thread.c index e55523452c2..e1c312d5974 100644 --- a/kernel/thread.c +++ b/kernel/thread.c @@ -654,13 +654,6 @@ k_tid_t z_impl_k_thread_create(struct k_thread *new_thread, { __ASSERT(!arch_is_in_isr(), "Threads may not be created in ISRs"); - /* Special case, only for unit tests */ -#if defined(CONFIG_TEST) && defined(CONFIG_ARCH_HAS_USERSPACE) && !defined(CONFIG_USERSPACE) - __ASSERT((options & K_USER) == 0, - "Platform is capable of user mode, and test thread created with K_USER option," - " but neither CONFIG_TEST_USERSPACE nor CONFIG_USERSPACE is set\n"); -#endif - z_setup_new_thread(new_thread, stack, stack_size, entry, p1, p2, p3, prio, options, NULL);